(j3.2006) DOUBLE PRECISION and C Interoperability

Van Snyder Van.Snyder
Tue Sep 11 16:27:09 EDT 2012


On Thu, 2012-09-06 at 11:58 +0900, Malcolm Cohen wrote:
> On 09/05/12 18:41, Robert Corbett wrote:
> > If a C companion processor imposes stricter requirements
> > on alignment for objects of type double than a Fortran
> > processor can guarantee for objects of type
> > DOUBLE PRECISION, can C double and Fortran DOUBLE PRECSION
> 
> or Fortran REAL with the -double option.
> 
> > be considered interoperable types?
> 
> I don't think so, at least not entirely.

This seems to suggest that C_DOUBLE and KIND(0.0d0) aren't necessarily
the same -- depending upon which companion processor the Fortran
processor is instructed to work with.





More information about the J3 mailing list