On 3/18/06, Luc Le Blanc <[EMAIL PROTECTED]> wrote:
> Ben Combee wrote:
> > On 3/18/06, Luc Le Blanc <[EMAIL PROTECTED]> wrote:
> >> Is creating more app segments than strictly necessary a problem under CW
> >> 9.3? I would be happy to tidy up my code by splitting procs by form so
> >> that I can find my procs more easily. I had started very tidy, but I
> >> later had to shuffle things around to go beyond link errors (unreachable
> >> functions).
> >
> > Additional segments will make your jump table larger, but otherwise
> > shouldn't be a problem.  Any jump from one segment to another goes
> > through the jump table on the dynamic heap, while a call within a
> > segment is made using a relative jump instruction.
>
>
> Isn't this dynamic heap also used for MemPtrNew and MemHandleNew? I'd
> hit the memory allocation limit sooner, then (I'm tight on memory).

Yes... however, the jump table is, IIRC, six bytes per entry, with
there being one entry for every function that's called from another
segment, so adding new items to it probably won't kill your memory
usage,

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

Reply via email to