[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



Wouter van Heyst wrote:
> 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.

-- 
Antti-Juhani

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: