我们可以做多少有一个编译器? [英] How small can we make a compiler?
本文介绍了我们可以做多少有一个编译器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们可以为C,Assembly等任何(一种)语言编译多少?
How small can we make a compiler for any (one) language like C, Assembly etc ? Would it be possible to make it about 300-400kb ?
推荐答案
是的,这当然是可能的。
Yes, this is certainly possible.
查看: TCC 。
在135KB(对于Win32)完全工作C编译器可执行文件。
upx
后只有72KB。
Check this out: TCC.
Fully working C compiler executable in 135KB (for Win32).
After upx
it becomes just 72KB.
这篇关于我们可以做多少有一个编译器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文