This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: casting on 64/32-bit environment


Andrew Haley wrote:

> Well, if this data structure is shared with FORTRAN you'll have to do
> something similar on the FORTRAN side.  It'll be a different type:
> INTEGER*8 or somesuch.  I'm not a FORTRAN programmer.
> 
> But yes, long will work on all gcc targets I'm aware of.

All maintained Fortran compilers, including gfortran, support c_ptr data
type.  You can't very well port intentionally non-portable stuff to a
different architecture unless you correct such anachronisms.


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