Long and short jumps

Jeffrey A Law law@redhat.com
Wed Jun 2 04:12:00 GMT 2004


On Fri, 2004-05-21 at 11:50, Nathan Sidwell wrote:
> Hi,
> I have this architecture which has limited range short jumps. Long range
> jumps require a register, and the link register is convenient for this.
You might want to look at the fr30 port which IIRC had many 
similarities to what you're trying to do.

I do recall a fair amount of pain from representing jumps as a 
parallel with a clobber, but we did have it working at one time.

You might also look at trying to do register scavenging when presented
with an out of range jump rather than reserving or trying to allocate
a scratch register.

Regardless, it's likely going to be rather painful as I'm sure you're
finding out.

Jeff



More information about the Gcc mailing list