Compile the fortran functions to object files with a fortran compiler, link them to a shared library, write C declarations for the publically exported functions (you may need to use some declaration modifier specific to your C compiler for this, because the calling conventions of fortran functions can be different from that of C functions), and use these C functions via XS.
Alternately, you can use Inline::C instead of XS for some loss of flexibility.
In reply to Re: Running fortran in perl
by ambrus
in thread Running fortran in perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |