Mail Archives: djgpp/1999/07/25/06:27:03
On 25 Jul 1999, Martin Str|mberg wrote:
> Ah... But why isn't it placed as high as possible so it can grow down
> (as it usually does in Un*x)?
That was tried in v1.x, and the result was that -fomit-frame-pointer
pointer was broken. The problem is that a special expand-down stack
segment ties up the BP register, and you cannot use it as a GP register
anymore.
If you are willing to have the stack be part of the same segment as .data,
.bss and the heap, then you cannot place it ``as high as possible'',
since that would mean your initial address space will be too large (it
has to map in the high addresses), and you lose some of the memory
protection.
- Raw text -