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

mem.h



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 */

Regards, jr