public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* WG: g++ 3.01 on HP-UX 11.0, stack size too large?
@ 2006-04-05  7:07 Puetz, Oliver  P11M22
  2006-04-05  9:31 ` Niklaus
  0 siblings, 1 reply; 2+ messages in thread
From: Puetz, Oliver  P11M22 @ 2006-04-05  7:07 UTC (permalink / raw)
  To: gcc-help

Hi,

I've written a program, which allocates locally (within a subroutine)
approx. a little bit lesser than 8k of memory (I guess, as there are
also objects). Mainly float vars. If I increase the number of the float
vars, the program aborts with a Memory fault (core dump).

Is it possible that the program aborts, if the local var size on the
stack exceeds 8k? Or can I specify a compiler flag to increase the stack
size for local variables?

Kind regards

Oliver Puetz
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: g++ 3.01 on HP-UX 11.0, stack size too large?
  2006-04-05  7:07 WG: g++ 3.01 on HP-UX 11.0, stack size too large? Puetz, Oliver  P11M22
@ 2006-04-05  9:31 ` Niklaus
  0 siblings, 0 replies; 2+ messages in thread
From: Niklaus @ 2006-04-05  9:31 UTC (permalink / raw)
  To: Puetz, Oliver P11M22; +Cc: gcc-help

On 4/5/06, Puetz, Oliver  P11M22 <Puetz.Oliver@siemens.com> wrote:
> Hi,
>
> I've written a program, which allocates locally (within a subroutine)
> approx. a little bit lesser than 8k of memory (I guess, as there are
> also objects). Mainly float vars. If I increase the number of the float
> vars, the program aborts with a Memory fault (core dump).
>
> Is it possible that the program aborts, if the local var size on the
> stack exceeds 8k? Or can I specify a compiler flag to increase the stack
> size for local variables?
>
Try doing a ulimit -a to see the system set size. You can change it
using ulimit or the function setrlimit.

> Kind regards
>
> Oliver Puetz
>
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-04-05  9:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-05  7:07 WG: g++ 3.01 on HP-UX 11.0, stack size too large? Puetz, Oliver  P11M22
2006-04-05  9:31 ` Niklaus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).