Name: Anonymous 2016-07-14 18:57
I wrote a (subset of) C compiler as a hobby: http://github.com/bl0ckeduser/new-bpf-tools - it targets x86
It can compile itself, if you are on x86 Linux with 32-bit C libraries installed you can do
$ ./4build.sh
and it will compile itself to 4 levels of depth
Then you can build some test programs like this one
$ ./wcc4 -w test/x86/e.c -o e.elf
$ ./e.elf
which will print the constant e to 1000 places
It can compile itself, if you are on x86 Linux with 32-bit C libraries installed you can do
$ ./4build.sh
and it will compile itself to 4 levels of depth
Then you can build some test programs like this one
$ ./wcc4 -w test/x86/e.c -o e.elf
$ ./e.elf
which will print the constant e to 1000 places