You could probably do it with quite a bit of work (recompiling gcc).  I've 
never actually done it, but once I ran across the following in 
"m68kpalmos.h", which is part of the gcc source code:

/* -l makes the assembler generate .w branches only */
#undef ASM_SPEC
#define ASM_SPEC "-mno-68881 -m68000 -l "

Dunno if there is a better way to do it.  Note that the choice of 16-bit 
jumps vs. 32-bit jumps can be an assembler option (like in this case), not 
a GCC option, so you need to look there...

---

--On Tuesday, January 11, 2000 7:57 AM +1000 Robert Crago 
<[EMAIL PROTECTED]> wrote:

> Hi there,
>
> Can anyone tell me if there is a gcc switch to force it to use 32 bit
> displacements when calling C functions?
>
> I am running into displacement problems (app is only 45K out of possible
> 64K and have applied the Fred Bayer workarounds)
>
> The only relevant gcc switch I can find is "--disp-size-default-32" but I
> haven't tried that as it says it is the default anyway.
>
> Any ideas??
>
> Robert Crago
> Revelation Computing Pty Limited
> PO Box 459, ASPLEY
> Brisbane, Australia 4034
>




Reply via email to