From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <9610181226.AA07788@scooter> Date: Fri, 18 Oct 1996 08:47:06 -0400 (EDT) From: Ulf Griesmann Subject: Re: Fortran compiler for Linux/Alpha In-Reply-To: <199610180524.BAA08287@rrdjazz.nist.gov> On Fri, 18 Oct 1996, Przemek Klosowski wrote: > f2c (using it by itself and with the various drivers) gives me bad results > with rather simple programs. I was using a simple, well known Runge-Kutta > diff eq solver (rkf45.f at netlib) which works fine on my HP palmtop, > various Suns, OSF/1 boxen and etc, but it won't work on Linux-AXP or > > I have often seen Fortran code that fails on f2c because of the > missing SAVE's, i.e. the code assuming that subroutine local variables > are preserved across different calls to this subroutine. This > assumption is not only invalid as per Fortran 77, but is ... f2c allocates all local variables static _unless_ you specifically tell it with the -a switch to make local variables automatic. By default, f2c plays it safe when it comes to SAVE - SAVE's are not required. Ulf -- Ulf Griesmann \\\ Tel.: (301) 975 3212 (x73220) National Institute of \\\ Fax.: (301) 990 1350 Standards & Technology \\\ e-mail: Atomic Physics Division, Bld. 221/A167 \\\ ulfg@aeldata.nist.gov Gaithersburg MD 20899, U.S.A. \\\ ulfg@groundhog.phy.nist.gov -- To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null