摘要
Fortran、C/C++是用户数量最多,使用最为广泛的编程语言,存在大量优秀的软件包及源代码,通过混合编程可以合并不同语言的优势,充分利用目前存在的这些软件资源。分析在Linux系统中Fortran与C/C++混合编程基本原理和内部调用约定,并通过实例阐述了使用C/C++调用Fortran77编写的线性代数软件包LAPACK的方法。实践表明,这种方法有效且可靠。
Fortran and C/C++ are some programming languages used widely and have largest number of users. And a lot of software and source program are coded in them. Mixed programming of For- tran and C/C++ can combine the advantages of different languages. Analyses the basic principle and interlanguage conventions of mixed Fortran and C/C++ language programming in Linux sys- tem, and expounds the method of using Fortran77 LAPACK subroutines in C program. Experi- mental result shows that this method is available and reliable.
基金
山东省青年基金项目(No.ZR2011FQ018)