I have overloaded functions like:
void f(int)
void f(int, int)
void f(int, float)
How to compile it, so that i can see the mangled output? Something like:
void f(int) should show: ?f@@YAXH@Z(int)
Like for example, to see pre-processor output we use -E
, assembler output -s
, what is it for name mangled output?
P.S: Platform is Linux
EDIT:
And by the answers here we go:
void func(int);
void func(int, int);
void func(void);
void func(char);
[root@localhost ~]# cat a.map | grep func
0x0804881a _Z4funcc
0x08048790 _Z4funcv
0x080487be _Z4funcii
0x080487ec _Z4funci