Skip to content

Commit

Permalink
add ucc
Browse files Browse the repository at this point in the history
  • Loading branch information
sheisc committed Dec 2, 2016
1 parent 4dcc60c commit 5ac989a
Show file tree
Hide file tree
Showing 175 changed files with 40,324 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ucc/COPYRIGHT
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The software is owned by the author Wenjun Wang(wenjunw@yahoo.cn)

24 changes: 24 additions & 0 deletions ucc/ChangeLog
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
$2008-05-14
(1) Fix double typedef name bug
typedef int A;
void f(A A);

(2) Fix multi-dimensional array pointer access bug
char *argv[];
argv[0][0];

(3) Fix an intermediate code generation bug, Start new basic block after goto

$2008-05-16
(1)ucl/lex.c: Fix the bug failed to recognize float constant such as 12e20

(2)ucl/declchk.c: Fix the bug failed to initialize known-size array in struct

$2008-06-16
(1) Add comments

(2) Fix struct/union memory layout

$2016-12-02
UCC162.3

125 changes: 125 additions & 0 deletions ucc/GPL.txt

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions ucc/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
UCCDIR = /home/iron/bin
export UCCDIR

all:
make -C driver
make -C ucl

clean:
make -C driver clean
make -C ucl clean

install:
mkdir -p $(UCCDIR)
cp driver/ucc $(UCCDIR)
cp ucl/ucl $(UCCDIR)
cp ucl/assert.o $(UCCDIR)
cp -r ucl/linux/include $(UCCDIR)
uninstall:
cd $(UCCDIR);rm -f ucl assert.o ucc ucl.bak ucl1 ucl2;rm -rf $(UCCDIR)/include
test:
make -C ucl test

26 changes: 26 additions & 0 deletions ucc/Makefile.win
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#UCCDIR = "C:\Program Files\ucc"
UCCDIR = "D:\bin\ucc"

all:
chdir driver
nmake -f Makefile.win
chdir ..
chdir ucl
nmake -f Makefile.win

clean:
chdir driver
nmake -f Makefile.win clean
chdir ..
chdir ucl
nmake -f Makefile.win clean

install:
-mkdir $(UCCDIR)
copy /Y driver\ucc.exe $(UCCDIR)
copy /Y ucl\ucl.exe $(UCCDIR)

test:
chdir ucl
nmake -f Makefile.win test

4 changes: 4 additions & 0 deletions ucc/REAMDE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
���Ķ�docĿ¼�µ�UCCʹ���ֲ��˽���ΰ�װ��ʹ��ucc.


Please read the UCC User Manual under doc directory to learn about the installation and usage of UCC.
Loading

0 comments on commit 5ac989a

Please sign in to comment.