Linker 一个链接任务可以传递多少个对象文件?
我在GNU/Linux上找到了一个Bash的普通案例,但是其他shell、其他操作系统和其他编译器呢 一个链接任务可以传递多少个对象文件 取决于您使用的链接器 当使用binutilsLinker 一个链接任务可以传递多少个对象文件?,linker,loader,toolchain,compiler-specific,Linker,Loader,Toolchain,Compiler Specific,我在GNU/Linux上找到了一个Bash的普通案例,但是其他shell、其他操作系统和其他编译器呢 一个链接任务可以传递多少个对象文件 取决于您使用的链接器 当使用binutilsgnu-ld或gold时,可以使用Windows风格的响应文件,它允许您绕过命令行长度限制,并根据需要传递尽可能多的参数: echo "foo.o bar.o baz.o ... -lc" > args gcc main.o -Wl,@args # there is no limit on how big a
gnu-ld
或gold
时,可以使用Windows风格的响应文件,它允许您绕过命令行长度限制,并根据需要传递尽可能多的参数:
echo "foo.o bar.o baz.o ... -lc" > args
gcc main.o -Wl,@args # there is no limit on how big args file is.