摘要
VC++调用Fortran子程序时,既可在C/C++中使用STDCALL属性的调用约定,也可以在Fortran程序中用!MS$ATTRIBUTES C编译伪指令来改变Fortran子程序的调用约定,也可以使用链接库的方式进行调用。其中使用动态链接库的优点比较多,可以实现快速高效的编程。
There are three ways for VC++ calling Fortran subroutine: one is using the STDCALL calling convention in C/C++ language;another is employing "!MS$ATTRIBUTES C" compiling pseudo instruction to change the calling convention of Fortran subroutine in Fortran program;the other is utilizing the Link Library.The means of using Dynamic Link Library works with great efficiency and speed.
出处
《潍坊教育学院学报》
2010年第5期93-94,共2页
Journal of Weifang Educational College