d三大编译器的构建标志

描述dmd标志ldc标志gdc标志
"debugMode"调试模式下编译(允许合约)-debug-d-debug-fdebug
"releaseMode"发布模式下编译-release-release-frelease
"coverage"运行完,输出代码覆盖率分析-cov-cov-fprofile-arcs,-ftest-coverage
"coverageCTFE"ctfe,编译时启用代码覆盖率分析-cov=ctfe-cov=ctfe
"debugInfo"启用符号调试信息-g-g-g
"debugInfoC"C兼容符号调试信息-g-gc-g
"alwaysStackFrame"始终生成栈帧-gs-disable-fp-elim
"stackStomping"栈踩踏-gx
"inline"内联-inline-enable-inlining,-Hkeep-all-bodies-finline-functions
"noBoundsCheck"不检查边界-noboundscheck-boundscheck=off-fno-bounds-check
"optimize"启用优化-O-O3-O2
"profile"分析代码-profile-fdmd-trace-functions-pg
"profileGC"分析垃集-profile=gc
"unittests"单元测试-unittest-unittest-funittest
"verbose"详细-v-v-v
"ignoreUnknownPragmas"忽略未知编译指示-ignore-ignore-fignore-unknown-pragmas
"syntaxOnly"仅语法,不生成目标文件-o--o--fsyntax-only
"warnings"警告,默认打开-wi-wi-Wall
"warningsAsErrors"警告为错误-w-w-Werror,-Wall
"ignoreDeprecations"忽略过时-d-d-Wno-deprecated
"deprecationWarnings"过时警告,默认打开-dw-dw-Wdeprecated
"deprecationErrors"过时错误,默认打开-de-de-Werror,-Wdeprecated
"betterC"更好的C-betterC-betterC-fno-druntime
"lowmem"低内存-lowmem-lowmem

调试信息:(例如,这样GDB可以显示函数名,参数和显示链接的源代码)
发布模式:(禁用断言和边界检查)

posted @ 2022-11-16 16:28  zjh6  阅读(22)  评论(0)    收藏  举报  来源