Interoperability and compiler compatibility
Steve Kargl
sgk@troutmask.apl.washington.edu
Sat Oct 18 15:25:00 GMT 2014
On Wed, Oct 15, 2014 at 04:51:32PM +1030, Tom Cook wrote:
>
> Sorry if this is the wrong forum for this question. I've been asked
> to port a large, mixed Fortran/C code base from the Intel compilers on
> Windows to the GNU compilers on Linux, maintaining source code
> compatibility with both compilers.
>
> The problem I'm facing is that the existing code quite often doesn't
> use the ISO_C_BINDING facilities for interoperability (indeed quite a
> bit of the code predates ISO_C_BINDING). Instead, a C function like
> this:
>
(deleted)
>
> Barring that, is my best option to modify the Intel-based build to
> emit lower-case names and rename all these functions to lower case in
> the C code?
Your best option is to implement a proper fix. The Fortran
Standard even has a facility for this.
--
Steve
More information about the Fortran
mailing list