(j3.2006) TKR for C Interop
Wed Feb 28 20:44:53 EST 2007
On Wednesday 28 February 2007 17:29, Bill Long wrote:
> Vendor dope vectors have different formats, so the size
> of the corresponding C descriptor will be different from one Fortran
> compiler to the next.
Correct, but we only manipulate pointers to Fortran descriptors ("descriptor
handles"), which are simply addresses regardless of what size the descriptors
are. Why does the exact Fotran dope vector format matter for the API?
> Calling sequence
> conventions are not even necessarily the same among Fortran compilers.
For interoperable procedures, if the companion C processor is the same (and
shall I predict that all compilers that want to run on Linux better have gcc
as one of the companions), the calling sequence must be the same. An
assumed-shape argument must be passed as a pointer to a descriptor. Period.
This is what the TR is about!
I still see binary compatibility as possible with careful design of the TR.
More information about the J3