On Thu, 3 May 2018 at 20:21, Jed Brown <j...@jedbrown.org> wrote:

> Lisandro Dalcin <dalc...@gmail.com> writes:

> > On 3 May 2018 at 18:50, Smith, Barry F. <bsm...@mcs.anl.gov> wrote:
> >>
> >>    Jeff, (and others),
> >>
> >>      Do you know of a tool that can take a C prototype and
automatically generate the Fortran C binding interface definition? We
currently generate stubs for C functions that have character arguments
manually and it would be great to remove that manual step.
> >>
> >
> > How do you exactly want to implement that? Totally replace these
> > special functions with the BIND(C) interface that calls directly the C
> > function, or rather generate a native Fortran subroutine that calls
> > the C function through a BIND(C) interface?

> The latter.  Usage should not change for existing Fortran users.

Things may end up being involved anyway, even if using ISO_C_BINDINGS.

http://fortranwiki.org/fortran/show/Generating+C+Interfaces#strings



-- 
Lisandro Dalcin
============
Research Scientist
Computer, Electrical and Mathematical Sciences & Engineering (CEMSE)
Extreme Computing Research Center (ECRC)
King Abdullah University of Science and Technology (KAUST)
http://ecrc.kaust.edu.sa/

4700 King Abdullah University of Science and Technology
al-Khawarizmi Bldg (Bldg 1), Office # 0109
Thuwal 23955-6900, Kingdom of Saudi Arabia
http://www.kaust.edu.sa

Office Phone: +966 12 808-0459

Reply via email to