Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91752

Forum Post: For C55x does the wcs reported by cg_xml call_graph apply to data stack only?

$
0
0

A program created in CCS 5.5 with C5500 compiler v4.1.1 for a TMS320C5535 was crashing - single stepping appeared to show stack corruption. The --stack_size and --sys_stacksize C5500 linker options were both set to 0x200 which is the default in a newly created project.

The  call_graph output from cg_xml v2.32.00 was reported a wcs of 1122 for main. The --stack_size linker option was increased from 0x200 to 0x500 (1280) and the program no longer crashed.

The cg_xml documentation for call_graph doesn't make it clear if the reported wcs for a C5500 device applies to the Data Stack and/or System Stack. i.e. does call_graph know how the reported stack usage is split between the Data Stack / System Stack?

[single stepping shows both the Data Stack and System Stack are being used]


Viewing all articles
Browse latest Browse all 91752

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>