现代计算机:上半月版
現代計算機:上半月版
현대계산궤:상반월판
Modern Computer
2012年
2期
57-60
,共4页
混合编程%Fortran%F2C%G77%LAPACK
混閤編程%Fortran%F2C%G77%LAPACK
혼합편정%Fortran%F2C%G77%LAPACK
Mixed-Language%Fortran%F2C%G77%LAPACK
Fortran、C/C++是用户数量最多,使用最为广泛的编程语言.存在大量优秀的软件包及源代码,通过混合编程可以合并不同语言的优势,充分利用目前存在的这些软件资源。分析在Linux系统中Fortran与C/C++混合编程基本原理和内部调用约定.并通过实例阐述了使用C/C++调用Fortran77编写的线性代数软件包LAPACK的方法。实践表明,这种方法有效且可靠。
Fortran、C/C++是用戶數量最多,使用最為廣汎的編程語言.存在大量優秀的軟件包及源代碼,通過混閤編程可以閤併不同語言的優勢,充分利用目前存在的這些軟件資源。分析在Linux繫統中Fortran與C/C++混閤編程基本原理和內部調用約定.併通過實例闡述瞭使用C/C++調用Fortran77編寫的線性代數軟件包LAPACK的方法。實踐錶明,這種方法有效且可靠。
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.