While a great many things in Fortran are compiler-dependent, practically 
speaking well over 90% of the usage in the Julia ecosystem is going to be 
with gfortran. The only reason anything in base Julia might work at all 
with ifort on OSX or Linux is due to ifort having gone out of their way to 
try to be at least mostly gfortran compatible by default on those platforms.


On Saturday, June 6, 2015 at 11:56:42 PM UTC-7, Steven G. Johnson wrote:
>
> I'm skeptical that calling Fortran subroutines inside modules like this is 
> portable; the mangling is compiler-dependent, no?
>
> (Even calling Fortran subroutines outside modules is compiler-dependent, 
> but thankfully most compilers these days use lowercase+underscore.  Calling 
> Fortran functions (not subroutines) and passing strings are also things 
> that are hard to do portably, or at least that used to be the case.)
>
> With Fortran 2003, the portable thing to do is to use iso_c_binding to 
> declare a C-compatible interface to your Fortran subroutines.
>

Reply via email to