Subject: Re: GCC3.3.1 switch coming soon.
To: Bang Jun-Young <junyoung@NetBSD.org>
From: Olaf Seibert <firstname.lastname@example.org>
Date: 12/11/2003 16:56:56
On Sat 27 Sep 2003 at 05:51:37 +0900, Bang Jun-Young wrote:
> Quote from FreeBSD mmap(2):
> MAP_STACK [snip] This option creates a memory region that
> grows to at most len bytes in size, starting from the
> stack top and growing down. The stack top is the
> starting address returned by the call, plus len bytes.
> The bottom of the stack at maximum growth is the start-
> ing address returned by the call.
> The returned address is called "the bottom" here. Quite confusing,
> isn't it... :-)
It is also ill-conceived, since it assumes the stack grows down. That is
not true for all architectures. IBM 370 (3090) has no hardware stack so
if you insist on implementing one in software it might as well grow up.
On hppa32 the hardware stack apparently grows up.
___ Olaf 'Rhialto' Seibert - rhialto@ -- "What good is a Ring of Power
\X/ polderland.nl -- if you're unable...to Speak." - Agent Elrond