This is a toy C compiler written in V.
This compiler is based on chibicc by Rui Ueyama.
This is the first compiler I have made.
The main object of this compiler is to compile The V Programming Language and compile itself by produced V binary.
Document by Rui Ueyama(Japanese): https://sigbus.info/compilerbook
My blog(Japanese): https://blog.anzu.tech/post/vcc
Please make sure that the V compiler is installed on your terminal.
The V Programming Language: https://vlang.io
To build VCC, run the following command
v -o vcc ./src
or just type
make
To compile C source code,
./vcc foobar.c > foobar.s
gcc -o foobar foobar.s
extern and global variables/prototype declaration supportedfor statements! Yay!Special thanks to Rui Ueyama
101 commits
V
99.9%
This is a toy C compiler written in V.
This compiler is based on chibicc by Rui Ueyama.
This is the first compiler I have made.
The main object of this compiler is to compile The V Programming Language and compile itself by produced V binary.
Document by Rui Ueyama(Japanese): https://sigbus.info/compilerbook
My blog(Japanese): https://blog.anzu.tech/post/vcc
Please make sure that the V compiler is installed on your terminal.
The V Programming Language: https://vlang.io
To build VCC, run the following command
v -o vcc ./src
or just type
make
To compile C source code,
./vcc foobar.c > foobar.s
gcc -o foobar foobar.s
extern and global variables/prototype declaration supportedfor statements! Yay!Special thanks to Rui Ueyama
101 commits
V
99.9%