Code Comments
Programming Forum and web based access to our favorite programming groups.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 !
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.