-fpic Generate position-independent code (PIC) suitable for use in a shared library, if supported for the target machine. Such code accesses all constant addresses through a global offset table (GOT). The dynami
-Zi 启用调试信息 enable debugging information -Zl 忽略 .OBJ 中的默认库名 omit default library name in .OBJ -ZI 启用调试信息的“编辑并继续”功能 enable Edit and Continue debug info -Zg 生成函数原型 generate function prototypes -Z7 启用旧式调试信息 enable old-style debug info -Zs 只进行语法检...
-G, -shared Generate shared library -Bshareable Generate shared library --split-stack-adjust-size SIZE Stack size when -fsplit-stack function calls non-split -static Do not link against shared libraries --icf [none,all,safe] Identical Code Folding. '--icf=safe' Folds ctors, dtors and func...
4. perl 5. GNU Libtool (如果你需要产生 shared library) 我会建议你最好也使用 GNU C/C++ 编译器 、GNU Make 以及其它 GNU 的工具程式来做为开发的环境,这些工具都是属於 Open Source Software不仅免费而且功能强大。如果你是使用Red Hat Linux 可以找到所有上述软体的 rpm 档,FreeBSD 也有现成的 package ...
/usr/bin/ld: /tmp/ccQ1dkqh.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC Use -fPIC or -fpic to generate code. Whether to use -fPIC or -fpic to generate code is target-dependent. The -fPIC choice always work...
GCc and g++分别是gnu的c & c++编译器 GCc/g++在执行编译工作的时候,总共需要4步 1.预处理,生成.i的文件[预处理器cpp] 2.将预处理后的文件不转换成汇编语言,生成文件.s[编译器eGCs] 3.有汇编变为目标代码(机器代码)生成.o的文件[汇编器as] 4.连接目标代码,生成可执行程序[链接器ld] ...
-Zl 忽略 .OBJ 中的默认库名 omit default library name in .OBJ -ZI 启用调试信息的“编辑并继续”功能 enable Edit and Continue debug info -Zg 生成函数原型 generate function prototypes -Z7 启用旧式调试信息 enable old-style debug info -Zs 只进行语法检查 syntax check only ...
Do not inline any of the specified functions --no_library_search Disable automatic runtime library search --no_literal_pool Don't generate literal pool in code memory --no_locals Do not include local symbols in output symbol table --no_range_reservations Do not reserve address ranges for abs...
-mcpu=native: Generate code setting the CPU model based on the CPU GCC is running on. Note, GCC version 9.1 or higher is required to enable CPU specific tunings for Ampere Processors. Using-mcpu=nativeis potentially easier to use, although it has a potential problem if the executable, s...
DIRECTORYAdd DIRECTORY to library search path-g Generate debug information in default format幾點說...