Re: casting on 64/32-bit environment

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

 



Andrew Haley writes:
 > Tim Prince writes:
 >  > 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.

One question: is c_ptr compatible with C pointers, or is it an integer
type compatible with intptr_t ?

Andrew.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux