This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran] Calling conventions for assumed shaped arrays?
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc at gcc dot gnu dot org,fortran at gcc dot gnu dot org
- Cc: Richard Guenther <rguenth at tat dot physik dot uni-tuebingen dot de>
- Date: Fri, 14 Jan 2005 10:14:56 +0000
- Subject: Re: [gfortran] Calling conventions for assumed shaped arrays?
- Organization: CodeSourcery
- References: <Pine.LNX.4.44.0501101346070.16464-100000@alwazn.tat.physik.uni-tuebingen.de>
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