Tiny C Complier/TCC

來源:互聯網
上載者:User

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翻譯,鍛煉下自己看文檔的能力~
您可以關注下這裡,稍後會有翻譯的更新。 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.