Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ name mangling decoder for g++?

is there any C++ name-mangling decoder for g++?

like image 341
SunnyShah Avatar asked Dec 17 '10 08:12

SunnyShah


People also ask

Does C have name mangling?

Since C is a programming language that does not support name function overloading, it does no name mangling.

What is name mangling in C++?

Name mangling is the encoding of function and variable names into unique names so that linkers can separate common names in the language. Type names may also be mangled. Name mangling is commonly used to facilitate the overloading feature and visibility within different scopes.

What is meant by name mangling?

The need for name mangling arises where the language allows different entities to be named with the same identifier as long as they occupy a different namespace (typically defined by a module, class, or explicit namespace directive) or have different signatures (such as in function overloading).

What is name mangling in Java?

Name mangling is a term that denotes the process of mapping a name that is valid in a particular programming language to a name that is valid in the CORBA Interface Definition Language (IDL).


1 Answers

You can use c++filt to demangle c++ symbols. For instance

$ c++filt -n _Z1fv f() 
like image 96
ryan_s Avatar answered Sep 17 '22 19:09

ryan_s