Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

hobby C compiler

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

Name: Anonymous 2016-07-20 17:54

Name: Anonymous 2016-07-20 17:56

Name: Anonymous 2016-07-20 18:02

It's a hexadecimal message that when converted to ascii prints this:

* g o a t s e x * g o a t s e x * g o a t s e x *
g g
o / \ \ / \ o
a| | \ | | a
t| `. | | : t
s` | | \| | s
e \ | / / \\\ --__ \\ : e
x \ \/ _--~~ ~--__| \ | x
* \ \_-~ ~-_\ | *
g \_ \ _.--------.______\| | g
o \ \______// _ ___ _ (_(__> \ | o
a \ . C ___) ______ (_(____> | / a
t /\ | C ____)/ \ (_____> |_/ t
s / /\| C_____) | (___> / \ s
e | ( _C_____)\______/ // _/ / \ e
x | \ |__ \\_________// (__/ | x
* | \ \____) `---- --' | *
g | \_ ___\ /_ _/ | g
o | / | | \ | o
a | | / \ \ | a
t | / / | | \ |t
s | / / \__/\___/ | |s
e | / | | | |e
x | | | | | |x
* g o a t s e x * g o a t s e x * g o a t s e x *


I think you get it as a warning message if you try to include pragma?

http://git.suckless.org/scc/tree/cc1/cpp.c#n562

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List