Clicky
Showing changes from revision #8 to #9:
(追記) Added (追記ここまで) | (削除) Removed (削除ここまで) | (削除) Chan (削除ここまで)(追記) ged (追記ここまで)
Among other things, Fortran 2003 provides the module iso_c_binding as well as several new Intrinsic procedures for enhanced interoperability with C: c_associated, c_funloc, c_f_procpointer, c_f_pointer, c_loc, c_sizeof.
See c_interface_module for an example of using type aliases to produce better-defined C interface prototypes.
Also see the C section of the Interoperability page.
ISO_Fortran_binding: supports C/Fortran interoperability by providing the Fortran 2018 ISO_Fortran_binding.h C header file, corresponding function definitions, and CMake scripts for building, testing, and installing static and dynamic libraries, by Damian Rouson et al. C programs may use the provided function to manipulate interoperable Fortran data objects by exploiting metadata describing the type, rank, extents, contiguity, and other information about the object.
(追記ここまで)(追記) (追記ここまで)Fortran and C interoperability - UCLA Academic Technology Services
(追記ここまで)(追記) (追記ここまで)Chasm: Language Interoperability Tools - a language transformation system created to improve Fortran and C/C++ language interoperability.
(追記ここまで)(追記) (追記ここまで)FCKit - a Fortran toolkit for interoperating Fortran with C/C++
(追記ここまで)FortCL - Fortran wrapper library providing OpenCL functionality