首页
社区
课程
招聘
[分享]发现个也许有价值的编译器
发表于: 2010-7-18 22:32 11496

[分享]发现个也许有价值的编译器

2010-7-18 22:32
11496
Tiny C Compiler

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.

某天整理硬盘时整理出来的,当时打算看库实现代码的,后来就忘了
拿来玩了下,东西编译出来的很小,拿VC2005编译器 开O1编译带MessageBox的对话框程序,大概40多K,拿这个只有2K,作者对PE的优化很牛X啊

可以编译DLL并生成DEF和其他编译器调用。

并且这个编译器还有个有意思的特性,就是可以解释执行C代码,呵呵,像脚本语言一样可以运行,COOL!

目前把编译出来的东西,拉倒PEID里还认不出来,呵呵

唯一有点遗憾的是只支持C,不过支持C99标准,这个很爽,定义数组的时候可以使用变量名,如果还是不爽可以配合《C语言接口与实现》中给出的通用数据结构来使用,简洁高效,平时用足够~

有需要的可以来3楼找我拷或自己下载个

主页:
http://bellard.org/tcc/

里面文档有点简单,不过够用了,对LINUX和WINDOWS平台均有说明,这个项目已经好多年了,应该比较成熟了,而且代码精简,拿来学习编译原理也不错哦~

欢迎师兄师弟们试用,体验

[课程]Linux pwn 探索篇!

收藏
免费 0
支持
分享
最新回复 (1)
雪    币: 334
活跃值: (22)
能力值: ( LV4,RANK:50 )
在线值:
发帖
回帖
粉丝
2
支持、学习、收藏
2010-7-18 23:13
0
游客
登录 | 注册 方可回帖
返回
//