I'm trying to write my own launcher, so i need to know wher the program is
located in memory. I know this is determined at run time but how does
it get the starting address.
Ii'm primarily an embedded programmer so i'm familair with what happens 
at link and run time. You sound like you know a lot of the low level
behaviour of palm os. Is this documeneted ay where? is there a book i
can purchase that expalins all of this. I have virtually every book i could
find on the palm and the os and none of them expains the memory lay out
and how programs are found in memoert as you expalined. Is there a book
out there i haven't seen yet...
> 
> > 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