minias
A mini assembler for x86_64, written for fun and learning.
Goals:
- A simple, tiny, fast implementation (in that order).
- Assemble the output of cproc/qbe and chibicc.
- Relocatable elf output.
Non Goals:
- Assemble every assembly instruction.
- Assemble other architectures.
- Work as a library.
Building
make
or
leg asm.peg > asm.peg.inc
cc -O2 *.c -o minias
Resources
- intel reference - Specifically chapter 2.1 and chapter 3.1.
- elf spec
- goas
- neatas