首页> 外文期刊>ACM Fortran Forum >A Method for Passing Data Between C and Opaque Fortran 90 Pointers
【24h】

A Method for Passing Data Between C and Opaque Fortran 90 Pointers

机译:在C和不透明的Fortran 90指针之间传递数据的方法

获取原文
获取原文并翻译 | 示例

摘要

This paper discusses a portable, standard conforming method for passing data arrays between C and Fortran 90. When Fortran introduced pointers in Fortran 90, they were made opaque, that is, programmers were not allowed access to their contents. This improved program safety, and Java made a similar choice for the same reason, and this works well so long as Fortran does not need to work with other languages. However, the real world is not so insular, and many large scientific projects involved a mixture of languages, most notably Fortran and C++. Java solved this problem by introducing a facility called native methods, which allow Java to natively communicate with C. Fortran followed a similar path by introducing interoperability with C as part of the Fortran 2003 standard.
机译:本文讨论了一种可移植的,符合标准的方法,用于在C和Fortran 90之间传递数据数组。当Fortran在Fortran 90中引入指针时,它们就变得不透明了,也就是说,不允许程序员访问其内容。这样提高了程序的安全性,并且出于相同的原因Java做出了类似的选择,并且只要Fortran不需要使用其他语言,它就可以很好地工作。但是,现实世界并不是那么孤立,许多大型的科学项目都涉及多种语言,尤其是Fortran和C ++。 Java通过引入一种称为本机方法的工具解决了这个问题,该工具允许Java与C进行本机通信。Fortran遵循类似的路径,引入了与C的互操作性作为Fortran 2003标准的一部分。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号