Documenting issues with handling library dependencies

This commit is contained in:
Justin Ethier 2015-05-20 22:52:36 -04:00
parent 8c0ce30c2e
commit e0abc33bea
2 changed files with 12 additions and 7 deletions

View file

@ -50,12 +50,11 @@ test: $(TESTFILES) cyclone
###############################
## Temporary testing directives
#.PHONY: test2
#test2: examples/hello-library/int-test/hello.c libcyclone.a
# ./cyclone scheme/base.sld
# cd examples/hello-library ; ../../cyclone libs/lib1.sld
# cd examples/hello-library ; ../../cyclone libs/lib2.sld
# cd examples/hello-library ; ../../cyclone hello.scm
.PHONY: test2
test2: examples/hello-library/int-test/hello.c libcyclone.a
cd examples/hello-library ; ../../cyclone libs/lib1.sld
cd examples/hello-library ; ../../cyclone libs/lib2.sld
cd examples/hello-library ; ../../cyclone hello.scm
## gcc examples/hello-library/int-test/lib2.c -I. -g -c -o lib2.o
## gcc examples/hello-library/int-test/hello.c -I. -g -c -o hello.o
## gcc hello.o lib2.o -L. -lcyclone -lm -o hello

8
TODO
View file

@ -2,7 +2,13 @@ Working TODO list:
- Issues with library hello example:
- seems to be working! next step is to get parser, eval, and icyc (in that order) to work with libs
libraries do not handle dependencies correctly. there are at least two issues:
- cyclic dependencies cause the compiler to hang. will need to keep a running list of deps probably, like the chibi meta-language
- entry_pt inits are not always in the correct order. see icyc broken unless imports are reversed. the deps need to be ordered such that
an import is not placed before another import that it depends upon. may be able to keep track of this info while keeping the running
list in the above bullet
- Reduction in size of generated code
is there anything we can do?