This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TMS570LS1224: Using cg_xml for static stack analysis on ARM

Expert 1226 points
Part Number: TMS570LS1224

Tool/software: TI C/C++ Compiler

I'm trying to use the cg_xml tools to determine worst-case stack usage in our TMS570LS ARM Cortex R4 and R4F firmware, using call_graph.exe.

I'm currently using v5.2.7 of the TI ARM Optimizing C/C++ Compiler, but we're planning to update to a more recent version of the TI compiler.


The documentation inside cg_xml version 2.50 and on the wiki page refer to using "ofd470" for ARM (TMS470) to extract information from the executable prior to running call_graph.

I don't see an ofd470 (or an "ofd570", for that matter) utility in either cg_xml v2.50 or in the my TI ARM compiler chain installation.


cg_xml v2.50 does have an "ofd6x.exe" utility, which the documentation suggests is for the C6000 toolset.

I've tried using the ofd6x utility on my ARM .out file; I appear to get meaningful results when sending its output through call_graph.exe.

Is it valid to use the ofd6x.exe utility to generate cg_xml data from a .out file generated by the TI ARM compiler?  If not, where do I get the correct utility?

--thx

  • 1138 said:
    Is it valid to use the ofd6x.exe utility to generate cg_xml data from a .out file generated by the TI ARM compiler? 

    Yes.  But you can also use armofd in your ARM toolset.  In the cg_xml documentation, all instances of ofd470 need to change to armofd.

    Thanks and regards,

    -George