mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-24 12:35:05 +02:00
Documenting issues with handling library dependencies
This commit is contained in:
parent
8c0ce30c2e
commit
e0abc33bea
2 changed files with 12 additions and 7 deletions
11
Makefile
11
Makefile
|
@ -50,12 +50,11 @@ test: $(TESTFILES) cyclone
|
||||||
|
|
||||||
###############################
|
###############################
|
||||||
## Temporary testing directives
|
## Temporary testing directives
|
||||||
#.PHONY: test2
|
.PHONY: test2
|
||||||
#test2: examples/hello-library/int-test/hello.c libcyclone.a
|
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/lib1.sld
|
cd examples/hello-library ; ../../cyclone libs/lib2.sld
|
||||||
# cd examples/hello-library ; ../../cyclone libs/lib2.sld
|
cd examples/hello-library ; ../../cyclone hello.scm
|
||||||
# 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/lib2.c -I. -g -c -o lib2.o
|
||||||
## gcc examples/hello-library/int-test/hello.c -I. -g -c -o hello.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
|
## gcc hello.o lib2.o -L. -lcyclone -lm -o hello
|
||||||
|
|
8
TODO
8
TODO
|
@ -2,7 +2,13 @@ Working TODO list:
|
||||||
|
|
||||||
- Issues with library hello example:
|
- 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
|
- Reduction in size of generated code
|
||||||
is there anything we can do?
|
is there anything we can do?
|
||||||
|
|
Loading…
Add table
Reference in a new issue