Question

I have previously ,here, been shown that C++ functions aren't easily represented in assembly. Now I am interested in reading 1 way or another because callgrind, part of valgrind, show them demangled while in assembly they are shown mangled, so i would like to either mangle the valgrind function output or demangle the assembly names of functions. Anyone ever tried something like that? I was looking at a website and found out the following:

 Code to implement demangling is part of the GNU Binutils package; 
see libiberty/cplus-dem.c and include/demangle.h.

anyone ever tried something like that, I want to demangle/mangle in C? my compiler is gcc 4.x

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top