x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DLIBEV_EMBED=1 -DEV_COMMON=...
ckdate(1) ckgid(1) ckint(1) ckitem(1) ckkeywd(1) ckpath(1) ckrange(1) ckstr(1) cksum(1) cksum(1g) cktime(1) ckuid(1) ckyorn(1) clear(1) clear(1g) clisp-link(1) clisp(1) cluster(1) cmake(1) cmakecommands(1) cmakecompat(1) cmakemodules(1) cmakepolicies(1) c...
g++ -c -g -Wno-deprecated -Wall -Werror -I. main.cpp g++ -o main.exe main.o -mconsole main.exe hello world --- filename=main.cpp line=17 time=11:19:23 date=May 1 2007 funname=main --- 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19...
使用 -funit-at-a-time 标志将允许编译器在编译函数时考虑从文件中后面的函数获得的信息。 一次将多个文件编译为单个输出文件(并使用 -funit-at-a-time)将允许编译器在编译每个文件时使用从所有文件获得的信息。 并非所有优化都直接由标志控制。 仅列出具有标志的优化。 -O 优化 -O1优化 对于大型函数来说,优化...
Wdate-time -Wdeclaration -声明后-Wdelete不完整-Wdelete-non-virtual-dtor -Wdeprecated -Wdeprecated-clarifications -Wdesignated-init -Wdisabled-optimization -Wdiscarded-array-qualifiers -Wdiscarded-qualifiers -Wdiv-by-零-Wdouble-promotion -Weffc ++-虚空的身体-Wendif标签-Wenum-compare -Wextra -Wfloat...
当请求无法识别的警告选项时(例如-Wunknown-warning ),GCC将发出诊断,指出该选项未被识别。 但是,如果使用-Wno- form,行为会稍有不同:除非正在生成其他诊断,否则不会生成-Wno-unknown-warning诊断。 这允许在旧编译器中使用新的-Wno-选项,但如果出现问题,编译器会警告存在无法识别的选项。
__DATE__ 代码编译的日期 __TIME__ 代码编译的时间 __STDC__ 指示编译器是否执行ANSI C标准,如果是则其值为1 __cplusplus 编译C++程序时该标识符被定义为1 === __func__ 函数名,C99引入了__func__,但其不是宏 __FUNCTION__ 函数名 __PRETTY_FUNCTION__ 函数名 ...
at GCC build time. We also need to pass -mno-relax to the assembler toreally disable relaxation. But, if the assembler does not support-mrelax option at all, we should not pass -mno-relax to the assembler orit will immediately error out. Also handle this with the build timeassembler ...
Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -W...