Re: how big can automatic (stack) arrays be



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.
.



Relevant Pages

  • Re: Sun to use AMD Opteron - announcement expected Monday
    ... (consider endianness and the IP stack for instance). ... has also mounted and booted AdvFS file system on HP-UX. ... Greg Cagle ...
    (comp.os.vms)
  • Re: how big can automatic (stack) arrays be
    ... pre-translated and faults are still used to grow the stack. ... mentioning any particular address space layout. ... description is true for HP-UX as well. ... from 'somewhere' and a 'heap' which grows up, ...
    (comp.unix.programmer)
  • Re: 4GB VM for 32 bit processes
    ... It works on Linux, but I don't know about other Un*x ... Unfortunately, I don't have access to a HP-UX, so I ... > implements the symmetric-version of the memory model supported by the ... > user_space and stack growths towards higher addresses). ...
    (comp.unix.programmer)
  • HPUX Stack Structure
    ... I'm interested in how HP-UX organizes the stack for C programs. ... int fun ... But I was expecting to see return addresses, ...
    (comp.sys.hp.hpux)
  • Re: Kernel thread stack usage
    ... growing down and one growing up. ... stack-based variables and the pward growing stack is used by ... If variable stack growing down and it's segment is pointed by td_kstack then where is the problem? ...
    (freebsd-arch)