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]