Article View: gnu.gcc.help
Article #42006Re: Stack Size for gcc
From: Fergus Henderson
Date: Sat, 27 Jan 1996 00:00
Date: Sat, 27 Jan 1996 00:00
20 lines
1395 bytes
1395 bytes
repper@esseye.si.com (Paul Repper) writes: >I am creating a rather large program using gcc on a SUN SPARC 10 station >and think I may be running out of room on the stack. Problem is that some >variable initialization code is skipped during program execution. Some seems >to be simply ignored (i.e. var = 1; results in var of 0), some are visibly >skipped over, and others evaluate to "not active" by the debugger. On Solaris (and probably SunOS and most unices these days), if you run out of stack space, you will get a segmentation violation. >Is there any way to determine what the stack size is and to increase it >if necessary? Yes, lookup the documentation for the `limit' (for csh/tcsh) or `ulimit' (for sh/bash) command in the man page for your shell. -- Fergus Henderson WWW: http://www.cs.mu.oz.au/~fjh fjh@cs.mu.oz.au PGP: finger fjh@128.250.37.3
Technical Details
Message-ID:
<9602715.22905@mulga.cs.mu.OZ.AU>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<DLLFy8.BqJ@esseye.si.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,70e6473f5508f2c6 X-Google-Attributes: gid11318c,public From: fjh@munta.cs.mu.OZ.AU (Fergus Henderson) Subject: Re: Stack Size for gcc Date: 1996/01/27 Message-ID: <9602715.22905@mulga.cs.mu.OZ.AU> X-Deja-AN: 136635634 sender: news@cs.mu.OZ.AU (CS-Usenet) references: <DLLFy8.BqJ@esseye.si.com> organization: Computer Science, University of Melbourne, Australia keywords: Stack newsgroups: gnu.gcc.help