简体   繁体   English

哪些C ++编译器在名称修饰中使用访问说明符?

[英]Which C++ compilers use the access specifier in name mangling?

I know MSVC does, and GCC doesn't? 我知道MSVC可以,而GCC可以吗? What about the others? 那其他人呢?

@Neil: MSVC does: http://labs.trolltech.com/blogs/2009/08/12/some-thoughts-on-binary-compatibility/ @Neil:MSVC确实: http ://labs.trolltech.com/blogs/2009/08/12/some-thoughts-on-binary-compatibility/

EDIT: sorry, i meant to reply. 编辑:对不起,我想回复。

This probably not only depends on compiler but also on platform. 这可能不仅取决于编译器,而且取决于平台。 ARM name mangling scheme does not use access modifiers to mangle names. ARM名称处理方案不使用访问修饰符来处理名称。 Itanium does (gcc follows this one). 安腾确实做到了(gcc遵循了这一点)。 Microsoft as far as I know is the only one to use it on it's own scheme. 据我所知,微软是唯一一个按其自身计划使用它的公司。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM