aboutsummaryrefslogtreecommitdiffstats
path: root/csc/linker-test.csc
AgeCommit message (Collapse)AuthorFilesLines
2022-08-01Modify the project structure.Rose Hogenson1-49/+0
Now the lib directory contains what will eventually end up on the user's /usr/lib/csc. When I write make install, it will copy all of the .csc files from lib into the destination lib directory. This means I can start working on the standard library in lib/scheme.
2022-07-30Fix a bug in the linker label calculation.Rose Hogenson1-4/+4
2022-07-30Fix some test cases in the compiler.Rose Hogenson1-19/+8
2022-07-28Use a better interface for linker.Rose Hogenson1-15/+2
2022-07-26Fix a potential R7RS issue.Rose Hogenson1-63/+65
I was using the load procedure to load a program, but by a strict reading of R7RS, load can only handle expressions and definitions, not imports. So instead I'm defining each test as a library, and using the environment procedure to load them at runtime.
2022-07-26Fix an issue with how the linker combined files.Rose Hogenson1-15/+23
I inserted jump statements into the bytecode at the beginning of each compilation unit, to jump to the init label. The point is that now the bytecode can be executed from start to finish, and assuming the libraries were ordered correctly, it will run the full program.
2022-07-25Re-write the linker.Rose Hogenson1-10/+49
2022-01-11Move scheme compiler into a separate directory.Rose Hogenson1-0/+24