Show HN: A compiler for a small language into x86-64 assembly

  • This is my first compiler, so I expect there to be several things I can improve :)

    I tried to follow the Assembly calling conventions the best I could.

    I am looking forward to any feedback!

  • You can try FASM (http://flatassembler.net) besides YASM and ld.

  • Curios if you looked into ANTLR? That's what was used most recently as part of my compiler's course at Georgia Tech.

  • What would be your advice to someone who's about to write a compiler? I'm planning to start by reading the Dragon book.