eabg020@orion.oac.uci.edu (Donald Doherty) (08/21/90)
I am getting the fatal-error message "automatic allocation exceeds 32k" while compiling in the QuickC environment. Evidently the space allocated for the local variables of the "main" function is 32k and, due to the fact that the program is math intensive with several variables (mostly of type double and several arrays), I have exceeded this limit. It is not clear to me how to change the amount of memory allocated to the local variables of any one function. Help in this matter will be greatly appreciated. Thank you! Don D. eabg020@orion.oac.uci.edu
LC.YRS@forsythe.stanford.edu (Richard Stanton) (08/21/90)
In article <26D06DA7.5617@orion.oac.uci.edu>, eabg020@orion.oac.uci.edu (Donald Doherty) writes: >I am getting the fatal-error message "automatic allocation exceeds 32k" >while compiling in the QuickC environment. Evidently the space allocated >for the local variables of the "main" function is 32k and, due to the >fact that the program is math intensive with several variables (mostly >of type double and several arrays), I have exceeded this limit. > >It is not clear to me how to change the amount of memory allocated to the >local variables of any one function. > Declaring the variables static may help; I'm not sure. One way that would get around this problem is to use dynamic memory allocation for your arrays, using functions malloc etc. Richard Stanton