Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
据我了解,libgcc 实现了一些 libc 函数,当程序使用内置函数并且 gcc 决定不通过某些内联程序集实现它时,这些函数会被调用。然而,是否有可能让 gcc 始终将所有内置函数实现为对 libgcc 的调用?
使用:-fno-builtin,或:
-fno-builtin
-fno-builtin-function, 用于特定功能。例如,-fno-builtin-memcpy
-fno-builtin-function
-fno-builtin-memcpy