This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Number of registers on x86
- To: bo at sonofthor dot dk, dan at www dot cgsoftware dot com
- Subject: Re: Number of registers on x86
- From: dewar at gnat dot com
- Date: Tue, 30 Jan 2001 08:33:56 -0500 (EST)
- Cc: gcc at gcc dot gnu dot org
<<Does anyone know how the new Amiga assembler works? They have an
infinite(!) amount of registers which the runtime schedules to use the
registers available on the chip the code is running on. It might be
interesting to see if this algorithm could lead to better use of registers
on compile time also.
>>
There seems nothing unusual about this approach, it is what all
compilers do. The only change is in leaving the last stage of register
allocation to later on, which is presumably only interesting if the
number of registers is not fixed.