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]
Other format: [Raw text]

Re: again problems implementing own target


Michael_fogel wrote:
In my opinion the compiler ran out of registers and was not able to allocate the pseudo register. In this case the compiler has to spill these registers. How is this done in GCC? Is there a way to control it?

There are a lot of things that affect this. The main things are constraints in the cpu.md file which specify register classes, and definitions in the cpu.h file which define the register classes. There are also various macros for adjusting costs related to register classes, availability of registers, suitability of registers for reloads, secondary reloads, etc. There is far too much stuff to list here. See the docs, and learn how to read -da RTL dumps.
--
Jim Wilson, GNU Tools Support, http://www.specifix.com



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