Demo of my C compiler
Posted: Sun Sep 20, 2026 8:08 am
It's been a long time since I posted ENV-ROD. But I feel x86 assembly is not too sufficient. It takes a long time to write assembly code. It took nearly a year to make and understand a C compiler. But things got easy with tokens and abstract syntax trees. The compiler is not fully ready, it does not support all of C89 standard features.
But here are things I implemented:
* "void", "char", "short", and "int" data types
* arrays
* pointers
* strings
* "/* */" comments
* "for" loops
* "if", "else", and "else if" conditions
* structures
* "return" statement (can be used with value)
The latest release is 0.4.1, which can be downloaded in my website:
http://hellowww.org/env/ec-0.4.1-linux64.tar.gz
Above archive contains example C code and 64-bit binary of compiler. You need NASM and DOSBox to test it.
Note: I never used AI in my life. Please do not say "it is AI assisted".
But here are things I implemented:
* "void", "char", "short", and "int" data types
* arrays
* pointers
* strings
* "/* */" comments
* "for" loops
* "if", "else", and "else if" conditions
* structures
* "return" statement (can be used with value)
The latest release is 0.4.1, which can be downloaded in my website:
http://hellowww.org/env/ec-0.4.1-linux64.tar.gz
Above archive contains example C code and 64-bit binary of compiler. You need NASM and DOSBox to test it.
Note: I never used AI in my life. Please do not say "it is AI assisted".