3 ms·
lacc – A simple, self-hosting C compiler
- peter_d_sherman 3y agoI particularly like the ELF code used by this compiler: https://github.com/larmel/lacc/blob/master/src/backend/x86_64/elf.c https://github.com/larmel/lacc/blob/master/src/backend/x86_6... https://github.com/larmel/lacc/blob/master/src/backend/x86_64/elf.h https://github.com/larmel/lacc/blob/master/src/backend/x86_6... ...as it may help future compiler writers! (That's because creation of an .EXE header (if the compiler is written for Windows) or creation of an ELF header (if the compiler is written for Linux) - is one of the first challenges that a future compiler writer must overcome!)