This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Different register sets for local and global register allocation?
- From: "Jan Hoogerbrugge" <hoogerbrugge at hotmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 03 May 2004 15:30:18 +0200
- Subject: Different register sets for local and global register allocation?
- Bcc:
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