[1]任慧,周振红..Fortran与C/C + +共享公用外部数据[J].郑州大学学报(工学版),2007,28(04):63-65.[doi:10.3969/j.issn.1671-6833.2007.04.016]
 Ren Hui,Zhou Zhenhong.Fortran shares common external data with C/C++[J].Journal of Zhengzhou University (Engineering Science),2007,28(04):63-65.[doi:10.3969/j.issn.1671-6833.2007.04.016]
点击复制

Fortran与C/C + +共享公用外部数据()
分享到:

《郑州大学学报(工学版)》[ISSN:1671-6833/CN:41-1339/T]

卷:
28
期数:
2007年04期
页码:
63-65
栏目:
出版日期:
1900-01-01

文章信息/Info

Title:
Fortran shares common external data with C/C++
作者:
任慧周振红.
郑州大学,电气工程学院,河南,郑州,450001, 郑州大学,环境与水利学院,河南,郑州,450001
Author(s):
Ren Hui; Zhou Zhenhong
关键词:
数值计算 混合编程 公用外部数据 共用区 结构体
Keywords:
numerical calculation hybrid programming public external data common areas Structure
DOI:
10.3969/j.issn.1671-6833.2007.04.016
文献标志码:
A
摘要:
在Fortran与C/C + +的混合编程中,数据主要通过例程参数传递,这使得被调用例程接口的设计趋于复杂化,有时不能直接利用现有的算法例程.现提出另一种数据传递方式,即在这两种语言间共享公用外部数据,包括全局变量和共用区/结构体.示例结果表明,只要采取适当措施,Fortran与C/C + +共享公用外部数据是完全可行的,从而为这两种语言间传递数据提供了一条新途径.
Abstract:

In Fortran’s hybrid programming with C/C++, data is mainly passed through routine parameters, which complicates the design of the called routine interface, and sometimes cannot directly utilize existing algorithm routines. An alternative way to pass data is proposed, that is, to share common external data between the two languages, including global variables and common areas/structs. The example results show that it is entirely feasible for Fortran to share common external data with C/C++ with appropriate measures, thus providing a new way to transfer data between the two languages.

相似文献/References:

[1]任慧,周振红..Visual Fortran调用Win32 API函数[J].郑州大学学报(工学版),2008,29(04):61.[doi:10.3969/j.issn.1671-6833.2008.04.015]
 Ren Hui,Zhou Zhenhong.Visual Fortran calls Win32 API functions[J].Journal of Zhengzhou University (Engineering Science),2008,29(04):61.[doi:10.3969/j.issn.1671-6833.2008.04.015]
[2]周振红,宋宇伟,郭恒亮,等.Visual Fortran基于Win32 DLL的混合编程技术[J].郑州大学学报(工学版),2003,24(03):10.[doi:10.3969/j.issn.1671-6833.2003.03.003]
 ZHOU Zhenhong,SONG Yuwei,GUO Hengliang,et al.Visual Fortran is based on Win32 DLL’s hybrid programming technology[J].Journal of Zhengzhou University (Engineering Science),2003,24(04):10.[doi:10.3969/j.issn.1671-6833.2003.03.003]
[3]高双聚,杨玲霞.明渠非恒定流数值计算的边界处理新方法[J].郑州大学学报(工学版),1994,15(02):49.
 Gao Shuangju,Yang Lingxia.New method of boundary processing of uninvited value calculation of Ming canal[J].Journal of Zhengzhou University (Engineering Science),1994,15(04):49.
[4]毕苏萍,周振红..Fortran与C/C + +共享模块中的数据和例程[J].郑州大学学报(工学版),2008,29(01):99.
 Pi Suping,Zhou Zhenhong.Fortran shares data and routines in modules with C/C++[J].Journal of Zhengzhou University (Engineering Science),2008,29(04):99.

更新日期/Last Update: 1900-01-01