Mail Archives: djgpp/1998/04/01/09:13:42
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.
- Raw text -