This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Number of registers on x86
- To: Daniel Berlin <dan at www dot cgsoftware dot com>
- Subject: Re: Number of registers on x86
- From: Bo Thorsen <bo at sonofthor dot dk>
- Date: Tue, 30 Jan 2001 07:56:37 +0100 (CET)
- Cc: <gcc at gcc dot gnu dot org>
On Mon, 29 Jan 2001, Daniel Berlin wrote:
> Can we please lie and say we have 32 GP registers on x86?
> Why, you ask?
>
> Well, there are 40 universal temporaries that are used by the hardware
> register renaming.
> Everything but floating status word, and floating point control word, can
> be renamed.
>
> Intel's compiler (IIRC), and SML/NJ do this (I'm positive about this one),
> and it improves performance, and helps to eliminate a lot of worthless
> spills.
> They just map them back into the 8 registers right before emitting.
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.
Bo.
--
Bo Thorsen | Lahnsgade 31, st.
Free software developer | 5000 Odense C
SuSE Labs | Denmark