Hello, I'm using PRC-tools to compile a multisegment application. My app is composed 
of 3 segments, each obtained by the usual way: 
#define Seg1
#define Seg2 __attribute__((section("SEGMENT2")))
#define Seg3 __attribute__((section("SEGMENT3")))

and then for each function declariation:
void func(params..) Seg1;
void func2(params..) Seg2;
ecc..

Now, my problem is this: I can't associate a NORMAL LAUNCH CONTEXT FUNCTION to an 
arbitrary segment; I don't know why, but some functions must be located in Seg1 to 
work. I know that in case of a launch code different from sysAppLaunchCmdNormalLaunch, 
the functions calls MUST be all in Seg1. But this isn't the present situation.

I defined all functions in other segments as EXTERN functions, but this, for some 
functions, doesn't work. The error I get calling those functions is:

Emul68KMain.c, Line:456, line 1111 exception at address 012E97C8

Can somebody help me to understand how should I associate functions to segments? I'm 
going on by a try-and-error way, but I'd like to understand better what's the problem..
Thanks,
Cristian
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to