-pg 带有 GNU 汇编器的标志
我正在编写一些汇编代码并使用 GNU 汇编器来汇编它们。我意识到无法使用 -pg 标志进行编译以便我可以进行分析。
有没有其他方式或任何其他汇编程序可以通过我进行分析?
谢谢
I am writing some assembly code and assembling them using GNU assembler. I have realized that there is no way to compile with -pg flags so that I can profile.
Is there any other way or any other assembler through which I can profile?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
考虑使用 google-perftools 中的分析器。假设我们有一个由两个目标文件构建的可执行文件
main
:一个是从 C 语言编译的,另一个是从汇编语言编译的。无需为编译、汇编或链接添加任何额外的标志。以下是有关分析器的所有信息。
Consider a profiler from google-perftools. Let's assume we've got an executable
main
built from two object files: one compiled from C and one from assembly. There's no need to add any extra flags for compilation, assembling or linking.Here's all there is to know about the profiler.