[gfortran] Calling conventions for assumed shaped arrays?

Paul Brook paul@codesourcery.com
Fri Jan 14 11:47:00 GMT 2005


Please send gfortran questions to fortran@gcc.gnu.org.

On Monday 10 January 2005 12:50, Richard Guenther wrote:
> Hi!
>
> For interfacing with C/C++ code, where is the calling conventions
> specified for assumed shaped arrays?  I.e. for
>
>     subroutine blah(a)
>       real, dimension(:,:) :: a
>     end subroutine blah
>
> what is a C "prototype" for blah_?

#include "libgfortran.h"
void blah_ (GFC_ARRAY_DESCRIPTOR(2, GFC_REAL_4) *a);

Note that "real" may be real(4) or real(8) depending on commandline options.

Paul



More information about the Gcc mailing list