Re: Name mangling under WASM




Jentje Goslinga <spamtrap@xxxxxxxxxx> wrote:

I am having a problem with WASM, the Watcom Assembler.

[I have heard the suggestion of using "friend functions"
but that does not apply to virtual functions.]

What happens if you write a C++ virtual function that simply
calls a friend function with a compatible signature?

In theory, the C++ compilers might optimize away the call
and stick your friend's address directly in the vtable, however
I don't know if C++ compilers are capable of this´optimization.

Should I maybe migrate to a different assembler? I currently
use WASM to compile my ASM, not MASM or NASM but could change
that.

Unfortunately, the NASM assembler won't emit debug information
suitable for VS (unless somebody added it since last time I looked).


.