This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Number of registers on x86
- To: <gcc at gcc dot gnu dot org>
- Subject: Number of registers on x86
- From: Daniel Berlin <dan at www dot cgsoftware dot com>
- Date: Mon, 29 Jan 2001 16:19:48 -0500 (EST)
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.
--Dan