3 ms·
> You stay classy, Microsoft. I believe Microsoft's mangling scheme is actually older than gcc's current one. While gcc changed its name mangling everywhere to
by cesarb 10y ago
> You stay classy, Microsoft.
I believe Microsoft's mangling scheme is actually older than gcc's current one. While gcc changed its name mangling everywhere to a new one based on Intel's IA-64 ABI, MSVC probably kept its own unchanged from compiler release to compiler release. I don't recall the reason for gcc changing its name mangling; perhaps better standard compliance?
IIRC, the MSVC scheme has an annoying property, in that "class foo" and "struct foo" have different mangling, while they're supposed to be completely interchangeable according to the C++ standard (other than the default access being "private" for class and "public" for struct).