At 06:07 PM 11/8/2004, you wrote:
Hi,

I'm porting some code from GCC to CodeWarrior.  How Do I handle function
definitions like this:

int Init(void *,void *,void *,void *,void *,void *,void *,void *,void *,void
*,void *,void *,void *,void *) __attribute__ ((section ("prog")));
void Main(void *) __attribute__ ((section ("prog")));
void VIrq(void *) __attribute__ ((section ("prog")));
void VProc(void *) __attribute__ ((section ("prog")));
....
....
void Loop(void) {
 Main((void *)ram);
 VIrq((void *)ram);
}

You can use "#pragma segment" to set the segment a function goes into, or just move the files among segments in the IDE to define segments. This is described in the "Targeting Palm OS" manual included with CW.


-- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc.
   "Combee on Palm OS" weblog: http://palmos.combee.net/
   Developer Fourm Archives:   http://news.palmos.com/read/all_forums/



--
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to