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]

Different register sets for local and global register allocation?


Hi,

Is it possible to specify that part of the registers are available
for local register allocation only and not for global register
allocation?

I am asking this because my target architecture is only interruptible
on taken jumps and does not preserve all registers when an interrupt
occurs (to reduce save/restores in the interrupt handler). Therefore,
some registers can not be used across a jump.

I tried adding clobbers to my patterns for jump instructions but that
did not work. It resulted in aborts and endless loops.

If no hooks are available to help me, what would be the appropriate place
in the compiler to achieve what I want?

Thanks,
Jan

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



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