bug-coreutils
[Top][All Lists]
Advanced

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

Re: Fotran/C linkage on 64-bit machines


From: Eric Blake
Subject: Re: Fotran/C linkage on 64-bit machines
Date: Tue, 26 Aug 2008 18:31:41 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080708 Thunderbird/2.0.0.16 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to F Nagle on 8/26/2008 10:26 AM:
>   Please forward this note to an appropriate person. 

You have reached the coreutils list, where we deal with various basic
applications: http://www.gnu.org/software/coreutils/faq/coreutils-faq.html
In particular, the coreutils are written in C, not Fortran.

> 
>  In using the g77 Fortran compiler on a 32-bit computer I have no trouble 
> when invoking a routine written in C from a Fortran program.  Fortran 
> typically passes the address (i.e. pointer) of its arguments, and my C 
> routine accepts the arguments as such.,  But on a 64-bit platform the result 
> is wrong, usually zero.  I am running under Red Hat Linux.

But it sounds like you are asking a compiler question.  You may have
better luck asking on a forum or mailing list more appropriate to your topic.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAki0oG0ACgkQ84KuGfSFAYBVfwCfZafGLpqISVNEN2k72Y4sUlBe
s6EAn3yAudxGe7nKTnrYlMz1C9IHuZ7o
=NT0W
-----END PGP SIGNATURE-----




reply via email to

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