我找到了链接到“g2c”库的代码。为什么我需要它?只是想了解为什么它可能很重要以及它通常有什么作用。
谢谢!
最佳答案
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.
您可能会认为,libg2c
之于 g77
就像 libc
之于 gcc
。
请注意,从 GCC 4.x 系列开始,g77
已停用,取而代之的是 gfortran ,它生成的程序不需要额外的 libg2c
运行时库。
关于linux - 什么是 libg2c 库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2406581/