Skip to content

[Question] is it possible to force wpp to the same name mangling as wcc? #843

Answered by jmalak
LowLevelMahn asked this question in Q&A
Discussion options

You must be logged in to vote

Generally on Assembly level you don't know what is C and what is C++ symbol.
C++ symbols mangling is depend on used compiler against C where some rules are defined for cdecl.
But OW doesn't use cdecl as default therefore C names use mangling rules depend on calling convention which can be different symbol-by-symbol.
If you are sure C++ compiler was OW or Watcom then you can use demangling functions which is included in C run-time-library.
But you need to know which symbol is C++ and which is C.

I am not sure but assembler has different character set for symbol names then C or C++ language that you can have a problem with some symbol names. for such names you can use back quote against suc…

Replies: 5 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by LowLevelMahn
Comment options

You must be logged in to vote
8 replies
@LowLevelMahn
Comment options

@jmalak
Comment options

@LowLevelMahn
Comment options

@jmalak
Comment options

@LowLevelMahn
Comment options

Comment options

You must be logged in to vote
1 reply
@LowLevelMahn
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #842 on March 16, 2022 16:17.