Microsoft Visual Studio C ++ Name Mangling Scheme的文档在哪里? [英] Where is documentation on the Microsoft Visual Studio C++ Name Mangling Scheme?

查看:137
本文介绍了Microsoft Visual Studio C ++ Name Mangling Scheme的文档在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有兴趣找到官方或反向工程文档,详细说明Visual Studio C ++编译器用于将C ++名称转换为生成代码中的符号的名称管理方案。

I am interested in finding either official or reverse engineered documentation detailing the name mangling scheme used by the Visual Studio C++ Compiler to translate C++ names into symbols in generated code.

我知道这可能会在不同版本之间变化,并且对Visual Studio 2003,2005和2008的细节最感兴趣。

I am aware that this may change between versions, and am most interested in the details for Visual Studio 2003, 2005 and 2008.

特别感兴趣的是处理C ++运算符,例如new,placement new和new []

Of special interest is the handling of C++ operators, such as new, placement new, and new[]

推荐答案

感谢参考,它以良好的幽默 - 关于严重和社区。当我写这些页面时,我应该非常想要做出认真的努力,但页面仍然标记为研究如何继续的草图。可悲的是,没有社区支持认真努力研究其他人的软件,这个或任何其他主题。

Thanks for the references, but I have to quibble - meaning it in good humour - about both "serious" and "community". When I wrote those pages, I should have liked very much to make a serious effort, but the pages remain marked just as sketches of how research might continue. Sadly, there is next to no community support for serious efforts at studying other people's software, for this or any other topic.

在日常实践中,程序员很少需要知道装饰算法。要找到特定的C ++名称如何装饰,他们可以使用编译器。要反转一个特定的装饰,他们可以把它送到CRT库函数__unDName。这是公认的无证,但它已经有了很长很长的时间。要使用它,这些天很容易,因为Visual Studio有一个UNDNAME.EXE工具。

In everyday practice, programmers rarely need to know the algorithm for decoration. To find how a particular C++ name gets decorated, they can use the compiler. To reverse a particular decoration, they can feed it to the CRT Library function __unDName. That's admittedly undocumented, but it has been there a long, long time. To use it these days is easy because Visual Studio comes with an UNDNAME.EXE tool.

这篇关于Microsoft Visual Studio C ++ Name Mangling Scheme的文档在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆