From: Steven G. Kargl on
In article <482096a8$0$9832$a726171b(a)news.hal-pc.org>,
Craig Powers <enigma(a)hal-pc.org> writes:
> e p chandler wrote:
>> 2. At some point g77 diverged from gfortran. They no longer (IIRC)
>> have the same calling conventions.
>
> I don't remember the exact set of options required, but I believe one
> can make gfortran use the g77 calling convention. I don't think it's
> the default, though.

-ff2c is the option. g77's calling convention is actually the
f2c calling convention bacause Craig Burley re-used the f2c
run-time library.

--
Steve
http://troutmask.apl.washington.edu/~kargl/
From: Catherine Rees Lay on
K-9 wrote:
> Good question. I'm trying to use g77 because i'm trying to develop
> some fortran77-only code. Of course yes i can go with gfortran. I was
> just curious to see the reason.
>
> Thanks.

Real functions have always been bizarre for reasons I never quite
understood, but which had to do with there being no standard convention
for how the return value is passed. Even in otherwise compatible object
files made by two different compilers they might not work.

At the point that I discovered this particular little weirdity, I just
gave up using them in mixed language programming - it wasn't worth the
hassle of never knowing if they would work.

Catherine.
--
Catherine Rees Lay

Polyhedron Software Ltd. Registered Office: Linden House,
93 High St, Standlake, Witney, OX29 7RH, United Kingdom.
Registered in England No.2541693. Vat Reg No. GB 537 3214 57
First  |  Prev  | 
Pages: 1 2
Prev: f77 nostalgia
Next: Derived types and allocatable