Ben,

You are correct, the startup code does load the code segment(s) and fix up the addresses. But it's all done with local variables. The key to the information seems to be the SysAppInfoPtr which is filled out by a call to SysAppStartup.

The SysAppInfoPtr is local to the startup routine however. Do you know if there is some way to ask for that pointer from some other Sys routine OR if it is in fact safe to call SysAppStart() again from my pilotMain() (this doesn't seem smart but I'm not sure what it does).

Thanks!
Randy

Ben Combee wrote:

At 01:09 PM 11/12/2003, Randy Eaton wrote:

Is there anyway to programatically determine how many code segments and where the start and end of each one is?


Of course... look in the runtime library source code -- CW has to lock all of the segments at program start, so all the info you need to determine where all the code of your program is should be there.



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

Reply via email to