gpt4 book ai didi

linux - 什么是 libg2c 库?

转载 作者:IT王子 更新时间:2023-10-29 00:16:59 26 4
gpt4 key购买 nike

我找到了链接到“g2c”库的代码。为什么我需要它?只是想了解为什么它可能很重要以及它通常有什么作用。

谢谢!

最佳答案

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.

您可能会认为,libg2c 之于 g77 就像 libc 之于 gcc

请注意,从 GCC 4.x 系列开始,g77 已停用,取而代之的是 gfortran ,它生成的程序不需要额外的 libg2c 运行时库。

关于linux - 什么是 libg2c 库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2406581/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com