Date: Wed, 1 Apr 1998 17:12:49 +0300 (IDT) From: Eli Zaretskii To: Federico Spinazzi cc: Nate Eldredge , Nicolas Blais , djgpp AT delorie DOT com Subject: Re: Why won't this work? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Wed, 1 Apr 1998, Federico Spinazzi wrote: > > >> You can declare an array for com: > > >> char com[22222222222222]; > > > ^^^^^^^^^^^^^^ > > >This is *way* too much. If you compile such a program it will bomb, > > >since automatic arrays cannot be larger than 256KB without changing the > > >default stack size. See section 15.9 of the DJGPP FAQ list, for more > > >about this. > for(hmis=HOW_MUCH_I_M_STUPID; hmis; hmis--) { > fprintf(stdout, "Hey, do you know how much I'm stupid > ?\n"); > fflush(stdout); The last snippet is entirely different from the first. The problem is not with the number, but with the declaration of an automatic array having that large dimension. A program like that will compile, but will bomb at run time.