gpt4 book ai didi

c++ - 分解/分解函数的函数

转载 作者:可可西里 更新时间:2023-11-01 14:53:04 27 4
gpt4 key购买 nike

我以前有,here ,表明 C++ 函数不容易在汇编中表示。现在我有兴趣以一种或另一种方式阅读它们,因为 Callgrind 是 Valgrind 的一部分,在组装时显示它们已损坏。

所以我想要么破坏 Valgrind 函数输出,要么破坏函数的程序集名称。有人试过这样的东西吗?我在看 website并发现以下内容:

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

有没有人试过类似的东西?我想在 C 中进行 demangle/mangle。

我的编译器是 gcc 4.x。

最佳答案

使用 c++filt 命令行工具对名称进行 demangle。

关于c++ - 分解/分解函数的函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4939636/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com