3 ms·
Even creating ELF executables is not particularly hard. As the article says, the complexity is in the linker. If you keep track of depedencies yourself, creatin
by nils-m-holm 8y ago
Even creating ELF executables is not particularly hard. As the article says, the complexity is in the linker. If you keep track of depedencies yourself, creating an ELF binary boils down to writing a header and aligning the text and data segments properly.
Here is a full compiler that emits ELF in about 1600 lines of code (the ELF emitter is about 50 lines in size, most which deals with generating the header):
https://www.t3x.org/t3x/t.t.html https://www.t3x.org/t3x/t.t.html
- nineteen999 8y agoThat is a fascinating project, thanks for sharing.