Show HN: Simple virtual machine, assembler, and C compiler
github.com
github.com
C4[1] on the other hand, is still tiny enough to comprehend, does have a pretty complete parser, and probably wouldn't be too difficult to modify to generate code for this VM.
Still looks well worth a read, though.
Don't try to run anything in the VM that's larger than 4K though right now... ;)
Not sure if the C compiler is quite ready for the headline, though. I was trying to get the test.c program to run on the vm, but after compiling and assembling, the vm just hangs. Is that expected?