This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fortran 77 in gcc


Thanks, the issue is now resolved!

On Mon, Jun 27, 2011 at 12:35 PM, Arjen Markus
<arjen.markus895@gmail.com> wrote:
> Hi,
>
> I would say: option 3.
>
> First of all, FORTRAN 77 is a very old standard - from 1978. Almost all
> programs that are legally FORTRAN 77 are legal Fortran 90/95/2003/2008
> as well - yes, since FORTRAN 77 there have been four new revisions of
> the standard.
>
> If you stick to the FORTRAN 77 methods of interfaces (probably important for the
> interfacing with C, though Fortran 2003 offers a better way of
> interfacing C and Fortran
> that is still compatible with C, you can use all new features of
> Fortran, like modules,
> dynamic memory allocation and array operations. You simply do not expose them to
> the C side.
>
> Other reasons for chosing option 3:
> 1. g77 is no longer maintained and gfortran is compatible to as far an
> extent as possible.
> 2. I do not know much about fort77, but I would say it suffers from
> the same problem as
> ? g77: it conforms to a now ancient standard and it is unlikely to be
> maintained.
> 3. Using the Fortran 2003 methods of interfacing to C will make your
> code more portable.
>
> Regards,
>
> Arjen
>
> 2011/6/27 phycker@gmail.com <phycker@gmail.com>:
>> Hello,
>>
>> I'm working on a project that requires the FORTRAN 77 compiler and I'm
>> new to the language. I've done some Googling and here is what I found:
>>
>> (1) g77 was the actual Fortran 77 compiler which is now redundant.
>> (2) There is fort77 which invokes f2c which converts FORTRAN 77 code
>> into C and then compiles it.
>> (3) The FORTRAN compiler now packaged with gcc is gfortran which is
>> (as far as the documentation goes backward compatible with FORTRAN 77)
>>
>> So my question is, should I need a FORTRAN 77 compiler is it better to
>> choose option (1) or (2) ?
>>
>> Thanks!
>>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]