[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: REL file documentation



In article <1146118769.793043.98250@t31g2000cwb.googlegroups.com>,
 "mdj" <mdj.mdj@gmail.com> wrote:

> That's great John, thanks!
> 
> I was considering using the format in a project I've been tinkering
> with for a while now that's finally reaching 'completion'. I'm inclined
> not to, since REL modules (unbeknownst to me) must load aligned to a
> page boundary, but we'll see.

My article was unclear: REL modules do _not_ need to be page aligned. 
They have all the information needed for arbitrary relocation. RLOAD 
merely page aligns a module because the ProDOS memory allocation routine 
(GETBUFR) happens to allocate a page aligned buffer.

If you have many small routines, you might consider collecting them into 
one object, prefaced with a jump table.

The simpler code scanning technique used by RBOOT _does_ rely on page 
alignment, but only to move RLOAD to a place with room to do it right.

-- 
John Matthews
jmatthews at wright dot edu
www dot wright dot edu/~john.matthews/