[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#325371: ITP: binfmtc -- a binfmt_misc hook for running C programs as scripts


> > Are you sure? http://fabrice.bellard.free.fr/tcc/ claims it produces
> > optimized x86 code, which could be a problem on other archs.
> TCC does some simple local optimizations (AIUI, some peephole
> optimization, and simple intra-statement linear register allocation),
> but calling it an "optimizing" compiler in the GCC sense would be too much.
> The TCC architecture would require significant changes if one wanted to
> make it a true optimizing compiler.
> However, TCC-compiled code is likely much faster than anything that the
> interpreters (Python, Perl) produce from equivalent code.

tcc has a very different scope to binfmtc in that it tries to be 
a compiler.

binfmtc is just an interface, and currently supports 
c, c++, java, assembler, fortran and pascal; and can be 
extended if the language can have a compiled
output in a sane way (I'm currently eyeing bison; flex looks a bit 

Considering that there doesn't seem to be a similar project, 
I'm going to upload the package.

Junichi Uekawa, Debian Developer   http://www.netfort.gr.jp/~dancer/
183A 70FC 4732 1B87 57A5  CE82 D837 7D4E E81E 55C1 

Reply to: