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

This is Interesting: Free IT Magazines  
Home > Archive > Debian Developers > August 2005 > Bug#325371: ITP: binfmtc -- a binfmt_misc hook for running C programs as scripts





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

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

2005-08-28, 2:48 am

Wouter van Heyst

2005-08-28, 7:48 am

On Sun, Aug 28, 2005 at 12:21:42PM +0200, Romain Francoise wrote:
> Junichi Uekawa <dancer@netfort.gr.jp> writes:
>
>
> TCC does C scripting, but it's nowhere near as complete as GCC and while
> it runs much faster, the resulting code is not optimized at all and runs
> very slowly.


Are you sure? http://fabrice.bellard.free.fr/tcc/ claims it produces
optimized x86 code, which could be a problem on other archs.

Wouter van Heyst


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Junichi Uekawa

2005-08-29, 8:51 pm

Hi,

>
> 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
difficult).

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



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


--
To UNSUBSCRIBE, email to debian-devel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com