admin管理员组文章数量:1315811
I'm considering building my code with clang/clang++ instead of clang-cl. I compile with /MT or /MTd depending on whether I'm making a debug or release build but it seems clang/clang++ always uses the non debug runtime as if compiled with /MT. I don't really know what the debug runtime does, is there anything I'll miss out on if I'm not using it?
I'm considering building my code with clang/clang++ instead of clang-cl. I compile with /MT or /MTd depending on whether I'm making a debug or release build but it seems clang/clang++ always uses the non debug runtime as if compiled with /MT. I don't really know what the debug runtime does, is there anything I'll miss out on if I'm not using it?
Share Improve this question asked Jan 30 at 1:42 HahaHortnessHahaHortness 1,6281 gold badge16 silver badges16 bronze badges1 Answer
Reset to default -1The debug runtime differs primarily in a sightly different ABI for iterators, which prohibits mixture (both static linkage and dynamic linkage with STL based interface) of libraries compiled with debug/release. That's why some of the frontends will avoid the debug runtime at any cost.
Those extra features are primarily for iterator validation, and iterator validation is therefore unavailable with the release runtime.
That be said - the use of ASAN can replace iterator validation entirely, so you are not actually loosing anything of worth.
All of the other "debug" or "validation" features like debug-heaps etc. are available in the "release" version of the runtime too.
本文标签: debuggingWhat does the MSVC Debug Runtime doStack Overflow
版权声明:本文标题:debugging - What does the MSVC Debug Runtime do? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741990369a2408986.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论