Re: how big can automatic (stack) arrays be
- From: Rainer Weikusat <rweikusat@xxxxxxxxxxx>
- Date: Mon, 21 Jul 2008 11:56:53 +0200
James Kanze <james.kanze@xxxxxxxxx> writes:
On Jul 20, 11:21 pm, Don Morris <dgmor...@xxxxxxxxxxxxx> wrote:
James Kanze wrote:
[...]
You might be remembering that the virtual address space up to
maxssiz is typically reserved on HP-UX, but it isn't
pre-translated and faults are still used to grow the stack.
OK. That may be; I never really worried about that. My point
was that unlike Solaris on Sparc (and Linux on PC, I think), the
two address spaces don't grow toward one another, but that the
address space for the stack is separate (and severly limited, in
comparison).
IOW, you would like to have objected to something which you believe to
be true for Linux and Solaris, but unfortunately, nobody wrote what
you would like to have objected too and at least your assumption
regarding Linux-'address space layout' is completely wrong (eg the
'sbrk-heap' starts 'closely above' the text can grow until it 'hits'
the first shared object, the stack is at the end of the mapped address
space, growing downwards).
Some details regarding HP-UX address space layout are available here:
http://docs.hp.com/en/8681/aas_white_paper.pdf
All variants employ a downward growing 'memory stack' and an upward
growing heap plus various 'other areas' in between the two.
.
- Follow-Ups:
- Re: how big can automatic (stack) arrays be
- From: James Kanze
- Re: how big can automatic (stack) arrays be
- References:
- how big can automatic (stack) arrays be
- From: viza
- Re: how big can automatic (stack) arrays be
- From: Rainer Weikusat
- Re: how big can automatic (stack) arrays be
- From: James Kanze
- Re: how big can automatic (stack) arrays be
- From: Don Morris
- Re: how big can automatic (stack) arrays be
- From: James Kanze
- how big can automatic (stack) arrays be
- Prev by Date: Re: how big can automatic (stack) arrays be
- Next by Date: Re: how big can automatic (stack) arrays be
- Previous by thread: Re: how big can automatic (stack) arrays be
- Next by thread: Re: how big can automatic (stack) arrays be
- Index(es):
Relevant Pages
|
|