> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> I'm trying to figure out how to determine where in memory
> a program will reside when it is launched.

When?  That is determined at run time, not build time.

> For example: if I launch my application
> program, where will the loader put it at.

The Palm OS doesn't really have a loader in the traditional sense.  No code
gets "loaded" (copied) from storage into core memory for execution, such as
happens on a regular computer when code is loaded from disk to RAM.  Palm
code just executes in place.  When a program is launched, the OS finds the
memory chunk that is the code segment, locks that chunk so it won't get
relocated, and then jumps to the entry point, which is approximately the
first byte.  (It also sets up the data segment and does various other magic
that most programs don't ever need to worry about.)

> In other words, how can i determine the starting address.

More generally, what are you really trying to accomplish?

-slj-

Reply via email to