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 @   zjh6  阅读(19)  评论(0编辑  收藏  举报  
相关博文:
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 25岁的心里话
· 按钮权限的设计及实现
点击右上角即可分享
微信分享提示