A C-language compiler made by C-language.
Following "低レイヤを知りたい人のためのCコンパイラ作成入門" by Rui Ueyama
- Windows 10
- Ubuntu on WSL1
- VSCode
- gcc, make
$ sudo apt install build-essential
- gdb
$ sudo apt install gdb
- git
$ sudo apt install git
- Open the repository folder by VSCode
Ctrl+@
to open the terminal$ make
Ctrl+@
to open the terminal$ make test
You can find "OK" in a test log if all tests are done.
- Open a source file you want to debug
- Left-click at the left side of the line number you want to break
Ctrl+Shift+D
to open Debug view- Select "9cc" configuration
F5
to start debug
//