Based on the this tutorial writing a compiler in C++.
The initial version (as of 23.08.2023) was done as a learning project with the help of ChatGPT for feedback on code and tips (Chat).
- nasm
- ld - The GNU linker
- pre-installed with linux. So probably run this project in WSL
-
Compile assembly with nasm:
$ nasm -felf64 test.asm
-
Link with ld:
$ ld test.o -o test
-
Execute:
$ ./test
-
Display exit code:
$ echo $?