C89cc.sh β standalone C89/ELF64 compiler in pure portable shell
https://gist.github.com/alganet/2b89c4368f8d23d033961d8a3deb5c19
#HackerNews #C89ccsh #C89Compiler #ELF64 #PortableShell #Programming #Tools
C89cc.sh β standalone C89/ELF64 compiler in pure portable shell
https://gist.github.com/alganet/2b89c4368f8d23d033961d8a3deb5c19
#HackerNews #C89ccsh #C89Compiler #ELF64 #PortableShell #Programming #Tools
The `weld-parser` crate wasn't happy with its name. Now, we must refer to it as `weld-object`. This crate has ambitions for its life!, like supporting Elf32, MachO, COFF, and more object formats, look at this little cheeky!
https://github.com/Hywan/weld/commit/7556abeb5d80f015e92634d8b9a6c1494e815b9e
Before leaving the elf64, I wanted to write some tests. Fortunately for me, parsers written with nom are really easy to test, they are just functions!
When tests are easy to write, it's a pleasure to test everything.
With this test session, I've been able to fix one panic when reading a string in a data segment with an out-of-range offset.