> I think I must have a base misunderstanding of how to do a multi-segment app
> in (Linux) gcc.
prc-tools 0.5.0/0.6.0/2.0/2.0.90? which one you using?
> I have an app with a prc size of 65402 characters and has two segments.
multi segment applications are not too difficult to setup, however
it all depends on the version of prc-tools you are using
> I'm trying to add a function call, and I'm getting the following error:
>
> -mycroft-> make
> m68k-palmos-gcc -static -g -O3 -I/usr/palm/m68k-palmos-coff/include/PalmOS
>-I/usr/palm/m68k-palmos-coff/include
>-I/usr/palm/m68k-palmos-coff/include/PalmOS/System
>-I/usr/palm/m68k-palmos-coff/include/PalmOS/Hardware
>-I/usr/palm/m68k-palmos-coff/include/PalmOS/UI -c app.c -o app.o
> /tmp/ccicGGCR.s: Assembler messages:
> /tmp/ccicGGCR.s:27940: Error: Value of -33508 too large for field of 2 bytes at
>0x726c
> /tmp/ccicGGCR.s:27940: Error: value out of range
> make: *** [app.o] Error 1
> -mycroft->
thought about using -palmos3.5 or similar flag? will clean up those
-I lines.. (but, requires prc-tools 2.0+)
> I've tried adding another segment, and while I can get it to compile with the third
> segment, I still can't get the function call to work.
> I've tried several other things as well. I've moved the offending function to a
> different place in the .c -- which makes things worse. I've moved some functions
> to different segments -- no change. I've made the largest segment smaller.
> Again no change.
>
> What do I need to do to fix this error, and what do I need to do to keep similar
>errors
> from occuring in the future?
since there are a few "gcc" environments, we need to know which one you
are using, and how you are specifying the multiple segments.. there are
large differences between some of them..
// az
[EMAIL PROTECTED]
http://www.ardiri.com/ <--- free games!
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/