This is the mail archive of the gcc@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: [gfortran] Calling conventions for assumed shaped arrays?


Richard Guenther wrote:
For interfacing with C/C++ code, where is the calling conventions
specified for assumed shaped arrays?  I.e. for

What is an assumed shape array? If C doesn't have this feature, then it may not be possible to accurately describe it in a C prototype.


In C, an array argument always decays to a pointer, so you could just use "float *", and it would be technically correct, though you would not be able to index into it without explicit address arithmetic.

Or maybe you can use the variable length array support, but that depends on what exactly an assumed share array is.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



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