调用树嵌入式软件 [英] Call tree for embedded software

查看:164
本文介绍了调用树嵌入式软件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道一些工具来创建一个可以在微控制器(Cortex-M3)上运行的C应用程序的调用树?它可以从源代码(不理想),对象代码(优选解决方案)或运行时(可接受)生成。我已经看过gprof,但是还是很少失去它在嵌入式系统上的工作。



另外一个额外的好处是,该工具也给出最大的堆栈深度。



更新:解决方案最好是免费的。

解决方案

实现这一点的一个好方法是使用作为RVCT(免费)一部分的ARM链接器(armlink)的 - callgraph 选项。



有关详细信息 - callgraph文档



我从一个意见中发现您正在寻找基于gcc的解决方案,而不是。但这可能仍然是有用的。


Does anyone know some tools to create a call tree for C application that will run on a microcontroller (Cortex-M3)? It could be generated from source code (not ideal), object code (prefered solution), or at runtime (acceptable). I've looked at gprof, but there's still a lot missing to get it to work on an embedded system.

An added bonus would be that the tool also gives the maximum stack depth.

Update: solution is preferably free.

解决方案

One good way to achieve this is by using the --callgraph option to the ARM linker (armlink) that is part of RVCT (not free).

For more details - callgraph documentation.

I realize from one of the comments that you are looking for a gcc-based solution, which this isn't. But it may still be helpful.

这篇关于调用树嵌入式软件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆