3 ms·
"a version that outputs AMD64 assembly" It's not based on the linked guide, but there's 8cc. Outputs x86-64 only. Diary of it being made: https://www.sigbus.
by tyingq 7y ago
"a version that outputs AMD64 assembly"
It's not based on the linked guide, but there's 8cc. Outputs x86-64 only.
Diary of it being made: https://www.sigbus.info/how-i-wrote-a-self-hosting-c-compiler-in-40-days https://www.sigbus.info/how-i-wrote-a-self-hosting-c-compile...
Github sources and history: https://github.com/rui314/8cc https://github.com/rui314/8cc
The "gen.c" source file might be helpful for some of your questions about x86-64: https://github.com/rui314/8cc/blob/b8a46abdb5f0633bdbff314820daf560cb987377/gen.c https://github.com/rui314/8cc/blob/b8a46abdb5f0633bdbff31482...