Features
SMALL! You can compile and execute C code everywhere, for example on rescue disks (about 100KB for x86 TCC executable, including C preprocessor, C compiler, assembler and linker).
FAST! tcc generates x86 code. No byte code overhead. Compile, assemble and link several times faster than GCC.
UNLIMITED! Any C dynamic library can be used directly. TCC is heading torward full ISOC99 compliance. TCC can of course compile itself.
SAFE! tcc includes an optional memory and bound checker. Bound checked code can be mixed freely with standard code.
Compile and execute C source directly. No linking or assembly necessary. Full C preprocessor and GNU-like assembler included.
C script supported : just add '#!/usr/local/bin/tcc -run' at the first line of your C source, and execute it directly from the command line.
With libtcc, you can use TCC as a backend for dynamic code generation.
--------------------------------------------------------
又小又快的好玩意,整理硬碟時發現以前下的。
編譯帶的例子,VC2010帶的CL編譯器 開 O1選項編譯出的是50多K,用這個只有3.5K。估計作者對COFF如數家珍啊。。還沒怎麼看過PE,所以無法指出都有最佳化了哪些部分,預感這會是個有價值的東西。而且開源,下學期打算自學編譯原理和作業系統原理,應該會用到。
WINDOWS平台下的DLL、OBJ均支援,而且標頭檔較全。
這個編譯器還有個有意思的特性,就是可以解釋執行C代碼,呵呵,像指令碼語言一樣可以運行,COOL!
不過微軟的MSE殺毒軟體會誤判,這個是一點遺憾。不然可以拿來做壞事,也不用最佳化PE了
把玩了下,很喜歡,推薦下~
官方網站是:
http://bellard.org/tcc/
打算翻譯下內建的那份文檔,100多K的HTML,預計一個禮拜翻譯完。不用GOOGLE翻譯,鍛煉下自己看文檔的能力~
您可以關注下這裡,稍後會有翻譯的更新。