Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Fortran > Re: weird g77 a...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 18 Topic 8211 of 8767
Post > Topic >>

Re: weird g77 and gfortran

by Charles Coldwell <coldwell@[EMAIL PROTECTED] > May 7, 2008 at 03:10 AM

lindahl@[EMAIL PROTECTED]
 (Greg Lindahl) writes:

> In article
<5065dea5-eb9e-4b0c-9413-04252b88eff0@[EMAIL PROTECTED]
>,
> K-9  <rick.peng.du@[EMAIL PROTECTED]
> 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.
>
> Check out the f2c-abi. On x86 and x86-64, this is the difference between
> g77 and gfortran's calling conventions.

In that case, does this declaration fix the OP's code:

extern double r_ (int * d, float *b);

i.e., in the C code, declare the return value to be double, but
maintain the "real function r(m,t)" definition in the Fortran code
compiled by g77.

Chip

-- 
Charles M. "Chip" Coldwell
"Turn on, log in, tune out"
GPG Key ID: 852E052F
GPG Key Fingerprint: 77E5 2B51 4907 F08A 7E92  DE80 AFA9 9A8F 852E 052F
 




 18 Posts in Topic:
weird g77 and gfortran
K-9 <rick.peng.du@[EMA  2008-05-05 19:55:53 
Re: weird g77 and gfortran
e p chandler <epc8@[EM  2008-05-05 20:26:33 
Re: weird g77 and gfortran
Craig Powers <enigma@[  2008-05-06 13:34:32 
Re: weird g77 and gfortran
Ingo Thies <ingo.thies  2008-05-13 14:09:52 
Re: weird g77 and gfortran
K-9 <rick.peng.du@[EMA  2008-05-05 20:35:13 
Re: weird g77 and gfortran
lindahl@[EMAIL PROTECTED]  2008-05-05 21:22:41 
Re: weird g77 and gfortran
Charles Coldwell <cold  2008-05-07 03:10:21 
Re: weird g77 and gfortran
Catherine Rees Lay <ca  2008-05-07 09:47:42 
Re: weird g77 and gfortran
kargl@[EMAIL PROTECTED]   2008-05-06 17:38:15 
Re: weird g77 and gfortran
stevenb.gcc@[EMAIL PROTEC  2008-05-13 05:50:59 
Re: weird g77 and gfortran
Ingo Thies <ingo.thies  2008-05-13 16:16:31 
Re: weird g77 and gfortran
lindahl@[EMAIL PROTECTED]  2008-05-13 11:55:07 
Re: weird g77 and gfortran
kargl@[EMAIL PROTECTED]   2008-05-13 14:36:29 
Re: weird g77 and gfortran
Thomas Koenig <tkoenig  2008-05-13 18:24:21 
Re: weird g77 and gfortran
Ingo Thies <ingo.thies  2008-05-14 14:37:54 
Re: weird g77 and gfortran
Thomas Koenig <tkoenig  2008-05-15 16:48:20 
Re: weird g77 and gfortran
Ingo Thies <ingo.thies  2008-05-16 10:20:17 
Re: weird g77 and gfortran
stevenb.gcc@[EMAIL PROTEC  2008-05-16 15:57:03 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Oct 11 12:46:27 CDT 2008.