EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

tool for generating call graph from assembler

Started by gripen_fighters January 5, 2011
Hello all,

Do you know a tool which parses the asm source code and generates a call graph?

Beginning Microcontrollers with the MSP430

gripen_fighters wrote:
> Hello all,
>
> Do you know a tool which parses the asm source code and generates a call graph?
>
>
OCY will know what you are talking about. I can imagiine. I wrote an
assembler for the 6502 some decades ago and would list calls at the end.
But from the 'source' as a tool? And just what tool are you using?
mspgcc and IAR and ... have different ways of doing things. Try the
documentation on the tool you are using. There should be a switch,
shouldn't there? And I'm almost sure it will be an assembly switch, I
can't imagine some 'source' parser. (No research on my part, not my job.)

Best, Dan.

On 05/01/2011 08:04, gripen_fighters wrote:
> Hello all,
>
> Do you know a tool which parses the asm source code and generates a call
> graph?
>

You could have a look at doxygen. It is a code documentation system,
and does vastly more than generate call graphs, but that is one of its
features.

I have searched the Internet for such a tool, tried doxygen - it only works for C/C++, C#, java and php files. The only tool i have found was mspdebug. I have installed it on a ubuntu 10.04 machine, tried to install also the msp-gcc toolchain but msp430-ld can't be found when running from eclipse (i've verified the path variable - it is correct). I have decided to assemble the asm file which i want to analyze via a call graph with iar ewb. I have generated from iar all types of file: bin, .elf, hex. The mspdebug successfully loaded the files generated from iar. The problem is I have no file with the symbols to load into the mspdebug to generated the call graph. Mspdebug manual specifies that BSD style symbol table must be loaded. Do you know what structure has this kind of table, so I can translate the map file generated from iar to BSD style symbol table?

On Sun, Jan 9, 2011 at 3:03 PM, gripen_fighters
wrote:
>
> I have searched the Internet for such a tool, tried doxygen - it only
works for C/C++, C#, java and php files. The only tool i have found was
mspdebug. I have installed it on a ubuntu 10.04 machine, tried to install
also the msp-gcc toolchain but msp430-ld can't be found when running from
eclipse (i've verified the path variable - it is correct). I have decided to
assemble the asm file which i want to analyze via a call graph with iar ewb.
I have generated from iar all types of file: bin, .elf, hex. The mspdebug
successfully loaded the files generated from iar. The problem is I have no
file with the symbols to load into the mspdebug to generated the call graph.
Mspdebug manual specifies that BSD style symbol table must be loaded. Do you
know what structure has this kind of table, so I can translate the map file
generated from iar to BSD style symbol table?

You might have more luck with this type of question in the mspgcc-users
group, where most of the MSPDebug traffic is. Here's a link to a MSPDebug
thread discussing symbol table info (
http://sourceforge.net/mailarchive/message.php?msg_id%237182). See the
later messages.

HTH,

--John



The 2024 Embedded Online Conference