tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] ASM Output?


From: Fabrice Bellard
Subject: Re: [Tinycc-devel] ASM Output?
Date: Wed, 17 Nov 2004 01:05:28 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624

Neil Bradley wrote:
I've checked the command line options and the docs but didn't see any
reference to it.  I see references to assembling a .s file, but not any
ability to look at the assembly that tcc generates (if it does so at all).

No way. However, you can use 'objdump -d' to look at the disassembled code.


Bummer. ;-( So is the object of tcc to never do anything other than x86,
or is there a future attempt to do other CPUs?

ARM and TMS320c67x are also supported to some extend.

Frankly, I'd like to see gcc get a kick in its complacency. ;-)

TinyCC is an "exercice of style" and I have no plan to improve it, except for small bug fixes. However, some of its ideas could be used to optimize the GCC parser. It is not acceptable that GCC is so slow at compiling code.

Another point is that there is no way to easily improve the TinyCC code generator - it is a "dead end" and I knew it from the start.

It would be educationnal to start a new project from TinyCC to incorporate a simple IR representation, to allocate registers with linear scan or graph coloring and then to generate code from it. The resulting compilation speed would not be necessarily slower, the TinyCC executable size would not be bigger and the code quality would be much closer to GCC. But it requires a lot of work and I no longer have the time nor the motivation to do it !

Fabrice.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]