什么是libg2c库? [英] What is libg2c library?
问题描述
我找到了与'g2c'库链接的代码。我为什么需要它?只是想明白为什么它可能是重要的,它通常会做什么。
谢谢!
code>由几个组件组成:
g77
修改后的版本
gcc
命令,它也可以作为系统的cc
命令来安装。 (在许多情况下,cc
指的是系统的本地C编译器,它可能是非GNU编译器,或者是旧版本的gcc 被认为更稳定,或者被用来构建操作系统内核。)
g77
命令本身,它也可以作为系统的
f77
命令来安装。libg2c
运行时库。此库包含支持Fortran语言功能所需的机器代码,这些代码不是由g77
编译阶段生成的机器代码直接提供的。
libg2c
只是g77
的版本< c> libf2c 以区别于从 libf2c 的任何副本f2c
(或g77
构建
您可能认为 libc
请注意,从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!
g77
consists of several components:
A modified version of the
gcc
command, which also might be installed as the system'scc
command. (In many cases,cc
refers to the system's "native" C compiler, which might be a non-GNU compiler, or an older version ofgcc
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'sf77
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 theg77
compilation phase.
libg2c
is just the unique nameg77
gives to its version oflibf2c
to distinguish it from any copy oflibf2c
installed fromf2c
(or versions ofg77
that builtlibf2c
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屋!