Thanks everyone for the suggestions.
I'll give the jump islands ago at this stage.
I don't want to move to CW just yet.

To make sure I've got this straight 
In GCC I increase the pilot.ld to make 
the code segment 64K.  Then when I link
I'll get errors for any functions greater than
32K away and I simply use the jump islands for
these as explained by Mark.

I certainly would be nice to see the GCC linker/complier
handle these situations automatically.  I guess that's
what you pay for in CW.

Thanks,

Hamish

----- Original Message ----- 
From: Mark Nudelman <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 19, 1999 10:17 AM
Subject: Re: Hitting the 32K Code limit


>The trick listed on that web page works fine.  One additional idea that
>may be useful: the web page says "Of course you must ensure (by
>shuffling your functions and objects) that calls between your functions
>don't exceed the 32k branch limit."  If it's more convenient, you can
>use the trick often called "jump islands" to avoid tedious reshuffling
>of objects and code within the objects.  For example, say you've got
>everything linking ok, except for three functions which don't fit within
>the 32k branch limit (call them Func1, Func2, Func3).  You can add a
>module island.c which contains:


Reply via email to