Date: Sat, 24 Jan 1998 13:19:32 -0800 (PST) Message-Id: <199801242119.NAA03059@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: "Andrew Crabtree" , djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: use memory more than 1MB Precedence: bulk At 03:00 1/23/1998 -0800, Andrew Crabtree wrote: > >John M. Aldrich wrote in message <34C81A06 DOT 18AF AT cs DOT com>... >>You should NEVER put large objects on the stack, particularly not the >>way you do it here. >I think depending on background many programmers do just this. The 'NEVER' >clause is pretty djgpp specific, not 'C' language specific. Most unixes >will grow >the stack automatically as needed (linux, hpux), and don't have a small >fixed >size one like djgpp. True, although there is still a limit. For me, Linux (2.0.29) allows 8MB or so of stack before crashing. > >>You can also increase the default stack size, but that is a really >>horrid way to get the above code to work. >Sure, for this case it is. But when porting gnu software that uses alloca >heavily >I think increasing stack size is reasonable... Of course, since we don't want to be hacking around the GNU sources. Nate Eldredge eldredge AT ap DOT net