Function to mangle/demangle functions(用于处理/解调函数的函数)
问题描述
我之前在这里表明C++函数并不容易代表大会.现在我有兴趣以一种或另一种方式阅读它们,因为 Callgrind 是 Valgrind 的一部分,在组装时显示它们已损坏.
所以我想要么破坏 Valgrind 函数输出,要么破坏函数的程序集名称.有没有人尝试过这样的事情?我正在查看 网站 并发现以下内容:
<块引用>实现解压缩的代码是 GNU Binutils 包的一部分;参见 libiberty/cplus-dem.c 和 include/demangle.h.
有没有人试过这样的东西?我想在 C 中进行 demangle/mangle.
我的编译器是 gcc 4.x.
使用 c++filt
命令行工具对名称进行解调.
I have previously, here, been shown that C++ functions aren't easily represented in assembly. Now I am interested in reading them one 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.
Has anyone ever tried something like that? I want to demangle/mangle in C.
My compiler is gcc 4.x.
Use the c++filt
command line tool to demangle the name.
这篇关于用于处理/解调函数的函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:用于处理/解调函数的函数


- 使用/clr 时出现 LNK2022 错误 2022-01-01
- 从python回调到c++的选项 2022-11-16
- STL 中有 dereference_iterator 吗? 2022-01-01
- Stroustrup 的 Simple_window.h 2022-01-01
- C++ 协变模板 2021-01-01
- 静态初始化顺序失败 2022-01-01
- 如何对自定义类的向量使用std::find()? 2022-11-07
- 近似搜索的工作原理 2021-01-01
- 与 int by int 相比,为什么执行 float by float 矩阵乘法更快? 2021-01-01
- 一起使用 MPI 和 OpenCV 时出现分段错误 2022-01-01