tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Optimizing code for expressions


From: Fabrice Bellard
Subject: Re: [Tinycc-devel] Optimizing code for expressions
Date: Thu, 10 Jul 2003 11:24:23 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020408

Laurent DESNOGUES wrote:
Otherwise you have to allocate registers once,
then reallocate them later on.


   Nothing prevents you from using a pseudo RISC with an
infinite number of registers.  This is indeed done by several
assemblers:  ti c6x assembler, and ps2 VU assembler vcl.
Both have the register allocator in the assembler.

   I don't think using a real RISC ISA is the way to go and I
*guess* Fabrice had a "generic" 3 address ISA in mind, not a
concrete one (I am often wrong at guessing ;).

   Regarding the stack-based IL, I used a compiler kit (ACK,
Amsterdam Compiler Kit) with a back-end generator.  The IL,
named em, was a stack-based IL.  The main thing I remember
from this time was the high complexity of the em optimizer...

Yes, I am thinking about using a virtual RISC ISA with an infinite number of registers (well, 65536 registers should suffice). Optimizing a stack-based IL is more complicated and limits the number of generic optimisations you can do.

Fabrice.





reply via email to

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