Skip to content

Commit

Permalink
Rewrote the symbol table to be three linked lists.
Browse files Browse the repository at this point in the history
  • Loading branch information
Warren Toomey committed Nov 11, 2019
1 parent eef10dc commit 94c06a4
Show file tree
Hide file tree
Showing 136 changed files with 5,200 additions and 0 deletions.
Binary file added 30_Design_Composites/Figs/newsymlists.dia
Binary file not shown.
Binary file added 30_Design_Composites/Figs/newsymlists.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 30_Design_Composites/Figs/structunion1.dia
Binary file not shown.
Binary file added 30_Design_Composites/Figs/structunion1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions 30_Design_Composites/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
HSRCS= data.h decl.h defs.h
SRCS= cg.c decl.c expr.c gen.c main.c misc.c \
scan.c stmt.c sym.c tree.c types.c

ARMSRCS= cg.c decl.c expr.c gen.c main.c misc.c \
scan.c stmt.c sym.c tree.c types.c

cwj: $(SRCS) $(HSRCS)
cc -o cwj -g -Wall $(SRCS)

cwjarm: $(ARMSRCS) $(HSRCS)
cc -o cwjarm -g -Wall $(ARMSRCS)
cp cwjarm cwj

clean:
rm -f cwj cwjarm *.o *.s out

test: cwj tests/runtests
(cd tests; chmod +x runtests; ./runtests)

armtest: cwjarm tests/runtests
(cd tests; chmod +x runtests; ./runtests)
Loading

0 comments on commit 94c06a4

Please sign in to comment.