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

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

问题描述

有谁知道一些工具来创建C应用程序调用树,将在微控制器(Cortex-M3的)运行?它可以从源头code(不理想),目标code(prefered液)中产生,或者在运行时(接受)。我看着gprof的,但还是有很多缺失让它在嵌入式系统上运行。

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.

更新:解决方案是preferably免费

Update: solution is preferably free.

推荐答案

要实现这一目标的一个好方法是使用 - 调用图选项将ARM链接器(armlink )这是RVCT(部分的的自由)。

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.

我从你正在寻找一个基于GCC的解决方案,而这并不是一个评论实现。但它仍然可能会有所帮助。

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天全站免登陆