c4 編譯器
專案 – https://github.com/ccc-c/c4
執行
guest@localhost:~/sp/ccc$ git clone https://github.com/ccc-c/c4.git
Cloning into 'c4'...
remote: Enumerating objects: 144, done.
remote: Total 144 (delta 0), reused 0 (delta 0), pack-reused 144
Receiving objects: 100% (144/144), 55.11 KiB | 268.00 KiB/s, done.
Resolving deltas: 100% (56/56), done.
guest@localhost:~/sp/ccc$ cd c4
guest@localhost:~/sp/ccc/c4$ ls
c4.c c4.wiki ccc hello.c LICENSE README.md
guest@localhost:~/sp/ccc/c4$ gcc -o c4 c4.c -m32
guest@localhost:~/sp/ccc/c4$ ls
c4 c4.c c4.wiki ccc hello.c LICENSE README.md
guest@localhost:~/sp/ccc/c4$ ./c4 hello.c
hello, world
exit(0) cycle = 9
guest@localhost:~/sp/ccc/c4$ ./c4 -s hello.c
1: #include <stdio.h>
2:
3: int main()
4: {
5: printf("hello, world\n");
ENT 0
IMM -137830384
PSH
PRTF
ADJ 1
6: return 0;
IMM 0
LEV
7: }
LEV
guest@localhost:~/sp/ccc/c4$ ./c4 c4.c hello.c
hello, world
exit(0) cycle = 9
exit(0) cycle = 26015