blob: 97eb6e61fbb2f1a5655a1ac6045714fef64a42fa [file] [log] [blame]
var System = xdc.useModule('xdc.runtime.System');
var SysMin = xdc.useModule('xdc.runtime.SysMin');
SysMin.bufSize = 0;
System.SupportProxy = SysMin;
Program.heap = 0; /* don't need heap for this app */
/* minimize footprint for resource constrained targets */
System.maxAtexitHandlers = 0; /* save 20B RAM; don't need atexit() */
Program.argSize = 0; /* don't need arc/argv support */
/* set STATIC_POLICY, runtime creation support/overhead is eliminated */
var Types = xdc.useModule('xdc.runtime.Types');
var Defaults = xdc.useModule("xdc.runtime.Defaults");
Defaults.common$.memoryPolicy = Types.STATIC_POLICY;
Defaults.common$.fxntab = false;
/* the following saves almost 1KB of code (strings are eliminated) */
var Text = xdc.useModule("xdc.runtime.Text");
Text.isLoaded = false;
/* the following is unnecessary for xdctools releases after 3.15
* (we are working around a "bug" in xdc.runtime.SysMin in which
* SysMin unnecessarily requires the use of Memory).
*/
var Memory = xdc.useModule('xdc.runtime.Memory');
var HeapMin = xdc.useModule('xdc.runtime.HeapMin');
Memory.defaultHeapInstance = HeapMin.create({size: 1});