For Programmers: Free Programming Magazines  


Home > Archive > Fortran > January 2008 > Re: Stack overflow problem but increasing stack size does not solve the problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Stack overflow problem but increasing stack size does not solve the problem
Richard Maine

2008-01-26, 7:21 pm

Louis Krupp <lkrupp@pssw.nospam.com.invalid> wrote:

> You might try adding "SAVE" to the array declaration in your main program:
>
> SAVE DOUBLE PRECISION a(65,2001)
>
> This might get the array off the stack at the expense of making your
> code file bigger.


Two things.

1. SAVE in a main program has no effect according to the standard. Of
course, the matter of stack versus other storage implementation is
outside of the scope of the standard and it is possible that a compiler
might change that depending on SAVE.

2. This syntax won't work in any case.


--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com