Skip to content

kohunglee/c4

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

c4 - C in four functions

An exercise in minimalism.

Try the following:

gcc -o c4 c4.c
./c4 hello.c
./c4 -s hello.c

./c4 c4.c hello.c
./c4 c4.c c4.c hello.c

About

c4是一个只有500行的极简C语言编译器(严格来说是解释器),它之所以叫C4,是因为整个程序只用4个函数实现(C in four function Compiler)。虽然是极简,但是它生成的编译器可以编译它自己。c4非常有名,是学习编译原理的绝佳素材。C in four functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C 100.0%