delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/30/04:56:10

Date: Thu, 30 Oct 1997 11:54:57 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: myshin <myshin AT etri DOT re DOT kr>
cc: djgpp AT delorie DOT com
Subject: Re: Compiler is Killed by C source code ?
In-Reply-To: <33e1aa67.6007629@news>
Message-ID: <Pine.SUN.3.91.971030115432.348N-100000@is>
MIME-Version: 1.0

On Thu, 30 Oct 1997, myshin wrote:

> But ,
> In main(){
> 	unsigned long TBM0[ 64][ 4], TBM1[ 64][ 4];
> 	unsigned long (*cTBM)[ 4], (*nTBM)[ 4];
> this source is no good.
> 
> These is only different array size !
> If I try to compile second source, my computer is down !

I'm guessing that you define too much automatic variables (those which
are local to your functions), and they overflow the default 256KB
stack that DJGPP programs get.  Please download the DJGPP FAQ list
(v2/faq210b.zip from the same place you get DJGPP) and read section
6.4 there, for possible solutions to this.

However, the above is based on a guess, and may be wrong.  It's
usually a bad idea to post parts of your code in such cases.  Since
you have no clue about what causes the crashes, chances are you will
omit the important parts and leave the unimportant ones.  For best
results, please post the smallest program that, when compiled, will
exhibit the problem.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019