For Programmers: Free Programming Magazines  


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









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
fj

2008-01-26, 8:17 am

On 26 jan, 08:55, nure...@gmail.com wrote:
> On Jan 26, 1:43 am, Ravindra Vidhate <ravividh...@gmail.com> wrote:
>
>
>
> Sorry, I pasted the wrong version. Problem exists with the following
> code too.
>
> file1:
> PROGRAM MAIN
> DOUBLE PRECISION a(65,2001)
> CALL ROUTINE1(a)
> END PROGRAM
>
> file2:
> SUBROUTINE ROUTINE1(a)
> DOUBLE PRECISION a(65,2001)
> RETURN
> END SUBROUTINE


In this second version, there is nothing wrong. It should work with
any stack size ... and any FORTRAN commpiler.

Are you sure it does not work ?

Of course, your first example was clearly wrong ... with any stack and
any FORTRAN compiler. Full recursivity without stop test cannot work !
Sponsored Links







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

Copyright 2008 codecomments.com