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".
Demo of my C compiler
Re: Demo of my C compiler
In what was this compiler written? Does it have a github repo?
Re: Demo of my C compiler
I know that I will sure as hell not download an executable file from the internet and run it. Luckily, as my distribution is Void Linux, I can't actually execute the file, since Void is a musl distro and your executable requires glibc.
So I'm going to ask what my predecessor asked a bit more forcefully: Source or I'm not running it!
So I'm going to ask what my predecessor asked a bit more forcefully: Source or I'm not running it!
Carpe diem!
Re: Demo of my C compiler
Sorry for not including the source code. I'm planning to create a repository. Here is the example working:nullplan wrote: ↑Mon Sep 21, 2026 12:38 pm I know that I will sure as hell not download an executable file from the internet and run it. Luckily, as my distribution is Void Linux, I can't actually execute the file, since Void is a musl distro and your executable requires glibc.
So I'm going to ask what my predecessor asked a bit more forcefully: Source or I'm not running it!

