3 ms·
I made similar project in TypeScript[1]. Basically multipass compiler that generates x86 assembly, compiles it to binary and runs it. The worst thing were regis
by mati365 3y ago
I made similar project in TypeScript[1]. Basically multipass compiler that generates x86 assembly, compiles it to binary and runs it. The worst thing were register allocator, designing IR code and assembler.
[1] https://github.com/Mati365/ts-c-compiler https://github.com/Mati365/ts-c-compiler
- vgel 3y agoOoh, this is cool! Using WASM let me avoid writing a register allocator (though I probably would have just used the stack if I had targeted x86/ARM since I wasn't going for speed).
- amedvednikov 3y agoNice project!