This is the mail archive of the
mailing list for the GCC project.
Re: again problems implementing own target
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