Demo of my C compiler

Programming, for all ages and all languages.
Post Reply
codesynth
Posts: 4
Joined: Mon Jul 20, 2026 1:15 pm
Contact:

Demo of my C compiler

Post by codesynth »

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".
JProMi63
Posts: 2
Joined: Sat Jun 06, 2026 10:11 am

Re: Demo of my C compiler

Post by JProMi63 »

In what was this compiler written? Does it have a github repo?
Post Reply