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: How to "disable" register allocation?


Øyvind Harboe wrote:

Is there an option(compile/build time?) to tell GCC to use as few
registers as possible?

Basically I want to run some tests where the assumption is that stack
slots generate faster/smaller code than registers.

Any pointers to where I should look in the GCC source, would be greatly
appreciated.



Just set all elements of reg_renumber array to -1 before the reload. Minimizing of register usage in reload would be more tricky.

Vlad



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