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.

CCS: Out of memory error in CG XML Processing script

Tool/software: Code Composer Studio

We were using the CG XML processing script to get information about structure definitions.

>global_types_gen.exe release.xml  >  structinfo.txt

which throws the following error

Out of memory!

release.xml size is 270MB. 

  • To see the documentation for the cg_xml package, load the file cg_xml_install_root/index.htm into a web browser.  Click the entry for global_types_gen.  Find the part that shows the following ...

    OFD OPTIONS
    Recent releases of OFD support options for filtering the XML output down
    to what is strictly of interest. The best options to use in combination
    with this script are:

    -xg --xml_indent=0 --obj_display=none --dwarf_display=none,dinfo,types

    Filtering the XML in this way reduces the amount of data processed by
    this script, thus making it run faster.

    Use these options when you use the object file display utility (such as armofd or ofd2000) to create the XML file release.xml.  That will make the XML file smaller, and less likely to cause the out of memory error.

    Please let me know whether this suggestion resolves the problem.

    Thanks and regards,

    -George

  • Thanks a lot. Now the xml size is close to 100MB, and everything works without any issues.