octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: F77 vs. F90 in Octave


From: Daniel J Sebald
Subject: Re: F77 vs. F90 in Octave
Date: Mon, 24 Nov 2014 11:36:59 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16

On 11/24/2014 11:02 AM, Rik wrote:
A quick check for F90 features shows that>  95% is written in F77.  The
exceptions are some files in blas-xtra and lapack-xtra written by Jaroslav
that seem to be in a mostly F77 syntax, but with a few F95 features.

Is the F95 code using a different compiler then? Or maybe same compiler but a compatibility flag? How is it compiling if FC=$F77?

I guess I'd prefer to stick to the autotools method as much as possible. In README.MacOS it describes

The commands below are sufficient to build a 32-bit Octave.

  export FC="/usr/bin/gfortran"
...

However, if the make file does FC=$F77, isn't that overriding the ability to specify the compiler via the environment variable FC? I see that as important because what if someone is compiling the code for a CPU target other than the system the compilation is done on? I suppose someone could also add

  export F77="xyz"

Still, I'd stay as close as possible to autoconf, and if it is necessary to deviate, write a comment along with the deviation.

Dan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]