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

Re: [MiNT] Freeing child's base page



Jo Even Skarstein wrote:
However, I'm not so sure if the
basepage and text/data/etc *always* is in one contiguous block.

Think to the initial Mshrink() call in every TOS program.
The goal of this function is to reduce the size of a block allocated by Malloc(). The standard formula basepage+text+data+bss+stack would not work if the block was not contiguous.

However, if MiNT had been able to support some kind of shared TEXT segment (-mbaserel ?), I guess the startup code had to take that in account. There was some traces of an ancestral usage of the obsolete -mbaserel in the MiNTLib.

--
Vincent Rivière