什么是libg2c库? [英] What is libg2c library?

查看:157
本文介绍了什么是libg2c库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找到了与'g2c'库链接的代码。我为什么需要它?只是想明白为什么它可能是重要的,它通常会做什么。



谢谢!

解决方案

什么是GNU Fortran?


g77

code>由几个组件组成:


  • 修改后的版本 gcc 命令,它也可以作为系统的 cc 命令来安装。 (在许多情况下, cc 指的是系统的本地C编译器,它可能是非GNU编译器,或者是旧版本的 gcc 被认为更稳定,或者被用来构建操作系统内核。)


  • g77 命令本身,它也可以作为系统的 f77 命令来安装。

  • libg2c 运行时库。此库包含支持Fortran语言功能所需的机器代码,这些代码不是由 g77 编译阶段生成的机器代码直接提供的。



    libg2c 只是 g77 的版本< c> libf2c 以区别于从 libf2c 的任何副本 f2c (或 g77 构建




您可能认为 libg2c g77 作为 libc code>是 gcc



请注意,从GCC 4.x系列开始, g77 已停用,取而代之的是 gfortran ,其中产生的程序不需要额外的 libg2c runtime l图书馆。


I have found the code which links against of 'g2c' library. Why do I need it? Just would like to understand why it might be important and what it does in general.

Thanks!

解决方案

What is GNU Fortran?

g77 consists of several components:

  • A modified version of the gcc command, which also might be installed as the system's cc command. (In many cases, cc refers to the system's "native" C compiler, which might be a non-GNU compiler, or an older version of gcc considered more stable or that is used to build the operating system kernel.)

  • The g77 command itself, which also might be installed as the system's f77 command.

  • The libg2c run-time library. This library contains the machine code needed to support capabilities of the Fortran language that are not directly provided by the machine code generated by the g77 compilation phase.

    libg2c is just the unique name g77 gives to its version of libf2c to distinguish it from any copy of libf2c installed from f2c (or versions of g77 that built libf2c under that same name) on the system.

You may think of it as, libg2c is to g77 as libc is to gcc.

Note that as of the GCC 4.x series, g77 has been discontinued, replaced by gfortran, which produces programs that do not require an extra libg2c runtime library.

这篇关于什么是libg2c库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆