aboutsummaryrefslogtreecommitdiffstats
path: root/csc/codegen-test.csc
AgeCommit message (Collapse)AuthorFilesLines
2022-08-01Modify the project structure.Rose Hogenson1-132/+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-29Fix test failures.Rose Hogenson1-23/+23
2022-07-26Fix a potential R7RS issue.Rose Hogenson1-116/+118
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-11/+16
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-25Write unit tests for codegen.Rose Hogenson1-20/+96
2022-07-24Write a test for codegen.Rose Hogenson1-3/+14
I'm not sure yet how to test regalloc.
2022-07-24Start codegen.Rose Hogenson1-0/+38