Skip to content

qwavies/Free-CC

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3,686 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Requirements

  • make installed on your system
  • gcc installed on your system
  • OS specific Requirements
    • BSD should use gmake instead of make
    • Windows should follow the instructions in ./win32/tcc-win32.txt

Installation

  1. Run ./configure
  2. Run make
  3. Run make install (root may be needed)
  4. Optionally run make test

Demo

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!

Changes from the Original TCC

  • 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

About

Tiny C Compiler fork with optional semicolons - an experimental C compiler that doesn't require statement terminators.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C 95.4%
  • Assembly 2.4%
  • Makefile 0.9%
  • C++ 0.5%
  • Shell 0.3%
  • Perl 0.3%
  • Batchfile 0.2%