From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,b0745a0b15631e1d X-Google-Attributes: gid111c93,public From: Ron Flory Subject: Re: Maximum array size? Date: 1999/03/06 Message-ID: <36E17B48.7ABE0678@feist.com>#1/1 X-Deja-AN: 451972026 Content-Transfer-Encoding: 7bit References: <36C208BE.1D15@leland.Stanford.EDU> <7aps04$opv@bgtnsc01.worldnet.att.net> <36D08674.4B8EE1F@frankfurt.netsurf.de> <7bqfk7$q53@bgtnsc03.worldnet.att.net> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: newsfeed.slurp.net 920746632 198.247.7.142 (Sat, 06 Mar 1999 12:57:12 CDT) MIME-Version: 1.0 NNTP-Posting-Date: Sat, 06 Mar 1999 12:57:12 CDT Newsgroups: comp.os.linux.alpha > >> It just so happens that 2^24 = 1Mb. This leads me to believe that > >> the default stack size is 1Mb. Since other variables are also on > >> the stack (some which you may not be aware of implicitly, e.g. > >> argc, argv, etc.) you will always have < 1Mb for your local > >> variables. huh? I missed the original message, but declaring more that a (very) few Kb from the stack is unwise. Use new/malloc for such things- thats what the heap is for... ron