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

Re: mem.h



Hi!

On Sat, May 30, 1998 at 10:25:08AM +0200, Julian F. Reschke wrote:
> Hi,
> 
> MagiC is using a bit in the program header to specify that for this
> process, a TPA size as specified in the program header is big 
> enough. This is a very useful feature, as it allows the kernel to
> load programs into smaller memory blocks, thus reducing another 
> reason for memory fragmentation.
> 
> It requires that the compiler/linker has allocated room for the
> stack in the BSS, which applies to the standard PureC system.
> 
> I would recommend to change mem.h as follows:
> 
> #define F_RESERVED	0x08	/* reserved for future use */
> #define F_SMALLTPA	0x08	/* used in MagiC: TPA can be allocated
> 				as specified in the program header
> 				rather than the biggest free memory
> 				block */

Sounds reasonable.

I'm currently working on the GNU linker 2.9.1 (I think it is the
linker that should reserve the space for the stack).  I wonder
what I have to do now to support this feature.

My idea would be to generalize the _stksize methods of the MiNTLib
and the old binutils.  Is that alright to everybody?

Ciao

Guido
-- 
http://stud.uni-sb.de/~gufl0000
mailto:gufl0000@stud.uni-sb.de