NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.
XDCOUTOFMEMORYERROR
Introduction[edit]
This page gives information for users attempting to packages with XDC and getting java out of memory error.
Overview[edit]
When compiling a XDC package which internally allocates huge amount of memory. For example see below,
Module.xdc: TableEntry table[]; Module.xs: obj.table.length = 1000; /* Allocates memory from JVM */
Here memory is allocated when length member of this array is assigned some value. If this value is large, it throws java.lang.OutOfMemory error.
Solution[edit]
1. Go to controlpanel and click on Java icon
4. Add -Xms256m or -Xms512m or -Xms1024m to the Java Runtime Parameters field
5. For JRE which comes with XDC packages, click on Find button
Now you can perform step4 to increase memory for this JRE distribution.