xiedeacc
发布于 2024-11-28 / 14 阅读
0
0

gcc各种类库作用

一、gcc各种类库作用

  • libgcc_s: provides essential low-level runtime support functions used by code generated by GCC.These functions are necessary for features like exception handling, stack unwinding, and certain arithmetic operations that require software-based implementations. link dynamic by default
  • libgcc: similiar with libgcc_s, it provide arithmetic operations and xception handling functions, but functions cannot be directly implemented in assembly or hardware, so it's write by C/C++, this library link static as default by gcc. corresponding library in llmv is compiler-rt
  • libgcc_eh.a: specifically provides exception handling and stack unwinding support for programs,stands for "exception handling", and it is a specialized version of libgcc.a that focuses on providing exception and stack-unwinding routines without unnecessary components. so just use libgcc.a commonly.
  • libcc: gcc plugin dev kit
  • librt.so: POSIX Realtime Extensions Library (librt) that provides functions for implementing real-time features in applications. These features include high-resolution timers, semaphores, message queues, and shared memory. It is part of the GNU C Library (glibc) and is available on Linux and other POSIX-compliant systems. don't need link this library explicitly, it already been included in libc
  • libstdc++ series
  • other library: gcc will atomatic link to them if neccessari

评论