This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Number of registers on x86


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]