Fortran compiler

I am developing an Android app on Mac. Does anyone know about the fortran compiler for Android? I was going to call some fortran routines from a C routine. Then wrap the C routine with a java class and use JNI for that.

BUT, I am unable to compile the fortran code.

+3


source to share


1 answer


Haven't tried it myself, but people have successfully created gfortran for android. See http://specificimpulses.blogspot.com/2012/08/something-borrowed-android-fortran.html and http://danilogiulianelli.blogspot.com/2013/02/how-to-build-gcc-fortran- cross-compiler.html .



If the only reason for your C code is to convert Fortran code, perhaps you can just use ISO_C_BINDING (with gfortran support) and access the JNI directly (with ISO_C_BINDING you can make Fortran code ABI compatible with C).

+1


source







All Articles