Free-CC: A Modified Version of TCC (Tiny C Compiler) Without the need for Semicolons!
If the compiler is smart enough to figure out where the semicolons should go, then why need them in the first place? -Aristole, probably
makeinstalled on your systemgccinstalled on your system- OS specific Requirements
- BSD should use
gmakeinstead ofmake - Windows should follow the instructions in
./win32/tcc-win32.txt
- BSD should use
- Run
./configure - Run
make - Run
make install(root may be needed) - Optionally run
make test
The file ./tests/modified_hello_world.c has been created as an example for what this compiler can do.
If you cat ./tests/modified_hello_world.c, you will get the following result:
#include <stdio.h>
int main() {
printf("Hello, world!\n") printf("2 print statements on the same line??\n")
printf("Wow! No semicolons in this file???\n")
return 0;
}You can check if the code compiles by running tcc ./tests/modified_hello_world.c && ./a.out, which should get you the following output:
Hello, world!
2 print statements on the same line??
Wow! No semicolons in this file???
Feel free to compile your own semicolon-free c files!
- Forked off of the Tiny C Compiler
- Removed the need for semicolons as a statement terminator
- Removed README
- Added README.md
- Added tests/modified_hello_world.c