예제 #1
0
public class host_platforms_SUN {
  static final String VERS = "@(#) xdc-u17\n";

  static final Proto.Elm $$T_Bool = Proto.Elm.newBool();
  static final Proto.Elm $$T_Num = Proto.Elm.newNum();
  static final Proto.Elm $$T_Str = Proto.Elm.newStr();
  static final Proto.Elm $$T_Obj = Proto.Elm.newObj();

  static final Proto.Fxn $$T_Met = new Proto.Fxn(null, null, 0, -1, false);
  static final Proto.Map $$T_Map = new Proto.Map($$T_Obj);
  static final Proto.Arr $$T_Vec = new Proto.Arr($$T_Obj);

  static final XScriptO $$DEFAULT = Value.DEFAULT;
  static final Object $$UNDEF = Undefined.instance;

  static final Proto.Obj $$Package = (Proto.Obj) Global.get("$$Package");
  static final Proto.Obj $$Module = (Proto.Obj) Global.get("$$Module");
  static final Proto.Obj $$Instance = (Proto.Obj) Global.get("$$Instance");
  static final Proto.Obj $$Params = (Proto.Obj) Global.get("$$Params");

  static final Object $$objFldGet = Global.get("$$objFldGet");
  static final Object $$objFldSet = Global.get("$$objFldSet");
  static final Object $$proxyGet = Global.get("$$proxyGet");
  static final Object $$proxySet = Global.get("$$proxySet");
  static final Object $$delegGet = Global.get("$$delegGet");
  static final Object $$delegSet = Global.get("$$delegSet");

  Scriptable xdcO;
  Session ses;
  Value.Obj om;

  boolean isROV;
  boolean isCFG;

  Proto.Obj pkgP;
  Value.Obj pkgV;

  ArrayList<Object> imports = new ArrayList<Object>();
  ArrayList<Object> loggables = new ArrayList<Object>();
  ArrayList<Object> mcfgs = new ArrayList<Object>();
  ArrayList<Object> proxies = new ArrayList<Object>();
  ArrayList<Object> sizes = new ArrayList<Object>();
  ArrayList<Object> tdefs = new ArrayList<Object>();

  void $$IMPORTS() {
    Global.callFxn("loadPackage", xdcO, "xdc.platform");
    Global.callFxn("loadPackage", xdcO, "xdc");
    Global.callFxn("loadPackage", xdcO, "xdc.corevers");
  }

  void $$OBJECTS() {
    pkgP = (Proto.Obj) om.bind("host.platforms.SUN.Package", new Proto.Obj());
    pkgV = (Value.Obj) om.bind("host.platforms.SUN", new Value.Obj("host.platforms.SUN", pkgP));
  }

  void Platform$$OBJECTS() {
    Proto.Obj po, spo;
    Value.Obj vo;

    po = (Proto.Obj) om.bind("host.platforms.SUN.Platform.Module", new Proto.Obj());
    vo =
        (Value.Obj)
            om.bind(
                "host.platforms.SUN.Platform", new Value.Obj("host.platforms.SUN.Platform", po));
    pkgV.bind("Platform", vo);
    // decls
    om.bind(
        "host.platforms.SUN.Platform.Board",
        om.findStrict("xdc.platform.IPlatform.Board", "host.platforms.SUN"));
    om.bind(
        "host.platforms.SUN.Platform.Memory",
        om.findStrict("xdc.platform.IPlatform.Memory", "host.platforms.SUN"));
    // insts
    Object insP = om.bind("host.platforms.SUN.Platform.Instance", new Proto.Obj());
    po = (Proto.Obj) om.bind("host.platforms.SUN.Platform$$Object", new Proto.Obj());
    Object objP = om.bind("host.platforms.SUN.Platform.Object", new Proto.Str(po, true));
    po = (Proto.Obj) om.bind("host.platforms.SUN.Platform$$Params", new Proto.Obj());
    om.bind("host.platforms.SUN.Platform.Params", new Proto.Str(po, true));
  }

  void SunSparc7$$OBJECTS() {
    Proto.Obj po, spo;
    Value.Obj vo;

    po = (Proto.Obj) om.bind("host.platforms.SUN.SunSparc7.Module", new Proto.Obj());
    vo =
        (Value.Obj)
            om.bind(
                "host.platforms.SUN.SunSparc7", new Value.Obj("host.platforms.SUN.SunSparc7", po));
    pkgV.bind("SunSparc7", vo);
    // decls
    // insts
    Object insP = om.bind("host.platforms.SUN.SunSparc7.Instance", new Proto.Obj());
    po = (Proto.Obj) om.bind("host.platforms.SUN.SunSparc7$$Object", new Proto.Obj());
    Object objP = om.bind("host.platforms.SUN.SunSparc7.Object", new Proto.Str(po, true));
    po = (Proto.Obj) om.bind("host.platforms.SUN.SunSparc7$$Params", new Proto.Obj());
    om.bind("host.platforms.SUN.SunSparc7.Params", new Proto.Str(po, true));
  }

  void Platform$$CONSTS() {
    // module Platform
  }

  void SunSparc7$$CONSTS() {
    // module SunSparc7
  }

  void Platform$$CREATES() {
    Proto.Fxn fxn;
    StringBuilder sb;

    fxn =
        (Proto.Fxn)
            om.bind(
                "host.platforms.SUN.Platform$$create",
                new Proto.Fxn(
                    om.findStrict("host.platforms.SUN.Platform.Module", "host.platforms.SUN"),
                    om.findStrict("host.platforms.SUN.Platform.Instance", "host.platforms.SUN"),
                    3,
                    2,
                    false));
    fxn.addArg(0, "name", $$T_Str, $$UNDEF);
    fxn.addArg(1, "args", $$T_Obj, $$UNDEF);
    fxn.addArg(
        2,
        "__params",
        (Proto) om.findStrict("host.platforms.SUN.Platform.Params", "host.platforms.SUN"),
        Global.newObject());
    sb = new StringBuilder();
    sb.append("host$platforms$SUN$Platform$$create = function( name, args, __params ) {\n");
    sb.append("var __mod = xdc.om['host.platforms.SUN.Platform'];\n");
    sb.append("var __inst = xdc.om['host.platforms.SUN.Platform.Instance'].$$make();\n");
    sb.append("__inst.$$bind('$package', xdc.om['host.platforms.SUN']);\n");
    sb.append("__inst.$$bind('$index', __mod.$instances.length);\n");
    sb.append("__inst.$$bind('$category', 'Instance');\n");
    sb.append("__inst.$$bind('$args', {name:name, args:args});\n");
    sb.append("__inst.$$bind('$module', __mod);\n");
    sb.append("__mod.$instances.$add(__inst);\n");
    sb.append("__inst.externalMemoryMap = __mod.PARAMS.externalMemoryMap;\n");
    sb.append("__inst.customMemoryMap = __mod.PARAMS.customMemoryMap;\n");
    sb.append("__inst.renameMap = __mod.PARAMS.renameMap;\n");
    sb.append("__inst.dataMemory = __mod.PARAMS.dataMemory;\n");
    sb.append("__inst.codeMemory = __mod.PARAMS.codeMemory;\n");
    sb.append("__inst.stackMemory = __mod.PARAMS.stackMemory;\n");
    sb.append("__inst.sectMap = __mod.PARAMS.sectMap;\n");
    sb.append("__inst.remoteHost = __mod.PARAMS.remoteHost;\n");
    sb.append("for (__p in __params) __inst[__p] = __params[__p];\n");
    sb.append("var save = xdc.om.$curpkg;\n");
    sb.append("xdc.om.$$bind('$curpkg', __mod.$package.$name);\n");
    sb.append("__mod.instance$meta$init.$fxn.apply(__inst, [name, args]);\n");
    sb.append("xdc.om.$$bind('$curpkg', save);\n");
    sb.append("__inst.$$bless();\n");
    sb.append("return __inst;\n");
    sb.append("}\n");
    Global.eval(sb.toString());
    fxn =
        (Proto.Fxn)
            om.bind(
                "host.platforms.SUN.Platform$$construct",
                new Proto.Fxn(
                    om.findStrict("host.platforms.SUN.Platform.Module", "host.platforms.SUN"),
                    null,
                    4,
                    2,
                    false));
    fxn.addArg(
        0,
        "__obj",
        (Proto) om.findStrict("host.platforms.SUN.Platform$$Object", "host.platforms.SUN"),
        null);
    fxn.addArg(1, "name", $$T_Str, $$UNDEF);
    fxn.addArg(2, "args", $$T_Obj, $$UNDEF);
    fxn.addArg(
        3,
        "__params",
        (Proto) om.findStrict("host.platforms.SUN.Platform.Params", "host.platforms.SUN"),
        Global.newObject());
    sb = new StringBuilder();
    sb.append(
        "host$platforms$SUN$Platform$$construct = function( __obj, name, args, __params ) {\n");
    sb.append("var __mod = xdc.om['host.platforms.SUN.Platform'];\n");
    sb.append("var __inst = __obj;\n");
    sb.append("__inst.$$bind('$args', {name:name, args:args});\n");
    sb.append("__inst.$$bind('$module', __mod);\n");
    sb.append("__mod.$objects.$add(__inst);\n");
    sb.append("__inst.externalMemoryMap = __mod.PARAMS.externalMemoryMap;\n");
    sb.append("__inst.customMemoryMap = __mod.PARAMS.customMemoryMap;\n");
    sb.append("__inst.renameMap = __mod.PARAMS.renameMap;\n");
    sb.append("__inst.dataMemory = __mod.PARAMS.dataMemory;\n");
    sb.append("__inst.codeMemory = __mod.PARAMS.codeMemory;\n");
    sb.append("__inst.stackMemory = __mod.PARAMS.stackMemory;\n");
    sb.append("__inst.sectMap = __mod.PARAMS.sectMap;\n");
    sb.append("__inst.remoteHost = __mod.PARAMS.remoteHost;\n");
    sb.append("for (__p in __params) __inst[__p] = __params[__p];\n");
    sb.append("__inst.$$bless();\n");
    sb.append("return null;\n");
    sb.append("}\n");
    Global.eval(sb.toString());
  }

  void SunSparc7$$CREATES() {
    Proto.Fxn fxn;
    StringBuilder sb;

    fxn =
        (Proto.Fxn)
            om.bind(
                "host.platforms.SUN.SunSparc7$$create",
                new Proto.Fxn(
                    om.findStrict("host.platforms.SUN.SunSparc7.Module", "host.platforms.SUN"),
                    om.findStrict("host.platforms.SUN.SunSparc7.Instance", "host.platforms.SUN"),
                    2,
                    1,
                    false));
    fxn.addArg(0, "revision", $$T_Str, $$UNDEF);
    fxn.addArg(
        1,
        "__params",
        (Proto) om.findStrict("host.platforms.SUN.SunSparc7.Params", "host.platforms.SUN"),
        Global.newObject());
    sb = new StringBuilder();
    sb.append("host$platforms$SUN$SunSparc7$$create = function( revision, __params ) {\n");
    sb.append("var __mod = xdc.om['host.platforms.SUN.SunSparc7'];\n");
    sb.append("var __inst = xdc.om['host.platforms.SUN.SunSparc7.Instance'].$$make();\n");
    sb.append("__inst.$$bind('$package', xdc.om['host.platforms.SUN']);\n");
    sb.append("__inst.$$bind('$index', __mod.$instances.length);\n");
    sb.append("__inst.$$bind('$category', 'Instance');\n");
    sb.append("__inst.$$bind('$args', {revision:revision});\n");
    sb.append("__inst.$$bind('$module', __mod);\n");
    sb.append("__mod.$instances.$add(__inst);\n");
    sb.append("__inst.cpuCore = __mod.PARAMS.cpuCore;\n");
    sb.append("__inst.cpuCoreRevision = __mod.PARAMS.cpuCoreRevision;\n");
    sb.append("__inst.minProgUnitSize = __mod.PARAMS.minProgUnitSize;\n");
    sb.append("__inst.minDataUnitSize = __mod.PARAMS.minDataUnitSize;\n");
    sb.append("__inst.dataWordSize = __mod.PARAMS.dataWordSize;\n");
    sb.append("for (__p in __params) __inst[__p] = __params[__p];\n");
    sb.append("var save = xdc.om.$curpkg;\n");
    sb.append("xdc.om.$$bind('$curpkg', __mod.$package.$name);\n");
    sb.append("__mod.instance$meta$init.$fxn.apply(__inst, [revision]);\n");
    sb.append("xdc.om.$$bind('$curpkg', save);\n");
    sb.append("__inst.$$bless();\n");
    sb.append("return __inst;\n");
    sb.append("}\n");
    Global.eval(sb.toString());
    fxn =
        (Proto.Fxn)
            om.bind(
                "host.platforms.SUN.SunSparc7$$construct",
                new Proto.Fxn(
                    om.findStrict("host.platforms.SUN.SunSparc7.Module", "host.platforms.SUN"),
                    null,
                    3,
                    1,
                    false));
    fxn.addArg(
        0,
        "__obj",
        (Proto) om.findStrict("host.platforms.SUN.SunSparc7$$Object", "host.platforms.SUN"),
        null);
    fxn.addArg(1, "revision", $$T_Str, $$UNDEF);
    fxn.addArg(
        2,
        "__params",
        (Proto) om.findStrict("host.platforms.SUN.SunSparc7.Params", "host.platforms.SUN"),
        Global.newObject());
    sb = new StringBuilder();
    sb.append(
        "host$platforms$SUN$SunSparc7$$construct = function( __obj, revision, __params ) {\n");
    sb.append("var __mod = xdc.om['host.platforms.SUN.SunSparc7'];\n");
    sb.append("var __inst = __obj;\n");
    sb.append("__inst.$$bind('$args', {revision:revision});\n");
    sb.append("__inst.$$bind('$module', __mod);\n");
    sb.append("__mod.$objects.$add(__inst);\n");
    sb.append("__inst.cpuCore = __mod.PARAMS.cpuCore;\n");
    sb.append("__inst.cpuCoreRevision = __mod.PARAMS.cpuCoreRevision;\n");
    sb.append("__inst.minProgUnitSize = __mod.PARAMS.minProgUnitSize;\n");
    sb.append("__inst.minDataUnitSize = __mod.PARAMS.minDataUnitSize;\n");
    sb.append("__inst.dataWordSize = __mod.PARAMS.dataWordSize;\n");
    sb.append("for (__p in __params) __inst[__p] = __params[__p];\n");
    sb.append("__inst.$$bless();\n");
    sb.append("return null;\n");
    sb.append("}\n");
    Global.eval(sb.toString());
  }

  void Platform$$FUNCTIONS() {
    Proto.Fxn fxn;
  }

  void SunSparc7$$FUNCTIONS() {
    Proto.Fxn fxn;
  }

  void Platform$$SIZES() {}

  void SunSparc7$$SIZES() {}

  void Platform$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "host/platforms/SUN/Platform.xs");
    om.bind("host.platforms.SUN.Platform$$capsule", cap);
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.Platform.Module", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.Platform.Module",
        om.findStrict("xdc.platform.IPlatform.Module", "host.platforms.SUN"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "BOARD",
        (Proto) om.findStrict("xdc.platform.IPlatform.Board", "host.platforms.SUN"),
        Global.newObject(
            "id", "0", "boardName", "sun-sparc", "boardFamily", "sun-sparc", "boardRevision", null),
        "rh");
    po.addFld(
        "CPU",
        (Proto) om.findStrict("xdc.platform.IExeContext.Cpu", "host.platforms.SUN"),
        Global.newObject(
            "id",
            "0",
            "clockRate",
            750.0,
            "catalogName",
            "host.platforms.SUN",
            "deviceName",
            "SunSparc7",
            "revision",
            ""),
        "rh");
    po.addFxn(
        "create",
        (Proto.Fxn) om.findStrict("host.platforms.SUN.Platform$$create", "host.platforms.SUN"),
        Global.get("host$platforms$SUN$Platform$$create"));
    po.addFxn(
        "construct",
        (Proto.Fxn) om.findStrict("host.platforms.SUN.Platform$$construct", "host.platforms.SUN"),
        Global.get("host$platforms$SUN$Platform$$construct"));
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("host.platforms.SUN.Platform$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("host.platforms.SUN.Platform$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "instance$meta$init");
    if (fxn != null) om.bind("host.platforms.SUN.Platform$$instance$meta$init", true);
    if (fxn != null) po.addFxn("instance$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("host.platforms.SUN.Platform$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.Platform.Instance", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.Platform.Instance",
        om.findStrict("xdc.platform.IPlatform.Instance", "host.platforms.SUN"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("remoteHost", $$T_Str, $$UNDEF, "wh");
    fxn = Global.get(cap, "getCpuDataSheet");
    if (fxn != null)
      po.addFxn(
          "getCpuDataSheet",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCpuDataSheet", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getCreateArgs");
    if (fxn != null)
      po.addFxn(
          "getCreateArgs",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getCreateArgs", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getExeContext");
    if (fxn != null)
      po.addFxn(
          "getExeContext",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getExeContext", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getExecCmd");
    if (fxn != null)
      po.addFxn(
          "getExecCmd",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getExecCmd", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getLinkTemplate");
    if (fxn != null)
      po.addFxn(
          "getLinkTemplate",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getLinkTemplate", "host.platforms.SUN"),
          fxn);
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.Platform$$Params", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.Platform.Params",
        om.findStrict("xdc.platform.IPlatform$$Params", "host.platforms.SUN"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("remoteHost", $$T_Str, $$UNDEF, "wh");
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.Platform$$Object", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.Platform.Object",
        om.findStrict("host.platforms.SUN.Platform.Instance", "host.platforms.SUN"));
    fxn = Global.get(cap, "getCpuDataSheet");
    if (fxn != null)
      po.addFxn(
          "getCpuDataSheet",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCpuDataSheet", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getCreateArgs");
    if (fxn != null)
      po.addFxn(
          "getCreateArgs",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getCreateArgs", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getExeContext");
    if (fxn != null)
      po.addFxn(
          "getExeContext",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getExeContext", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getExecCmd");
    if (fxn != null)
      po.addFxn(
          "getExecCmd",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getExecCmd", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getLinkTemplate");
    if (fxn != null)
      po.addFxn(
          "getLinkTemplate",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getLinkTemplate", "host.platforms.SUN"),
          fxn);
  }

  void SunSparc7$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "host/platforms/SUN/SunSparc7.xs");
    om.bind("host.platforms.SUN.SunSparc7$$capsule", cap);
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.SunSparc7.Module", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.SunSparc7.Module",
        om.findStrict("xdc.platform.ICpuDataSheet.Module", "host.platforms.SUN"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFxn(
        "create",
        (Proto.Fxn) om.findStrict("host.platforms.SUN.SunSparc7$$create", "host.platforms.SUN"),
        Global.get("host$platforms$SUN$SunSparc7$$create"));
    po.addFxn(
        "construct",
        (Proto.Fxn) om.findStrict("host.platforms.SUN.SunSparc7$$construct", "host.platforms.SUN"),
        Global.get("host$platforms$SUN$SunSparc7$$construct"));
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("host.platforms.SUN.SunSparc7$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("host.platforms.SUN.SunSparc7$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "instance$meta$init");
    if (fxn != null) om.bind("host.platforms.SUN.SunSparc7$$instance$meta$init", true);
    if (fxn != null) po.addFxn("instance$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("host.platforms.SUN.SunSparc7$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.SunSparc7.Instance", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.SunSparc7.Instance",
        om.findStrict("xdc.platform.ICpuDataSheet.Instance", "host.platforms.SUN"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("cpuCore", $$T_Str, "sparc7", "wh");
    po.addFld("cpuCoreRevision", $$T_Str, "1.0", "wh");
    po.addFld("minProgUnitSize", Proto.Elm.newCNum("(xdc_Int)"), 1L, "wh");
    po.addFld("minDataUnitSize", Proto.Elm.newCNum("(xdc_Int)"), 1L, "wh");
    po.addFld("dataWordSize", Proto.Elm.newCNum("(xdc_Int)"), 4L, "wh");
    po.addFld(
        "memMap",
        new Proto.Map((Proto) om.findStrict("xdc.platform.IPlatform.Memory", "host.platforms.SUN")),
        Global.newArray(new Object[] {}),
        "wh");
    fxn = Global.get(cap, "getMemoryMap");
    if (fxn != null)
      po.addFxn(
          "getMemoryMap",
          (Proto.Fxn)
              om.findStrict("xdc.platform.ICpuDataSheet$$getMemoryMap", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getRegisterSet");
    if (fxn != null)
      po.addFxn(
          "getRegisterSet",
          (Proto.Fxn)
              om.findStrict("xdc.platform.ICpuDataSheet$$getRegisterSet", "host.platforms.SUN"),
          fxn);
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.SunSparc7$$Params", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.SunSparc7.Params",
        om.findStrict("xdc.platform.ICpuDataSheet$$Params", "host.platforms.SUN"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("cpuCore", $$T_Str, "sparc7", "wh");
    po.addFld("cpuCoreRevision", $$T_Str, "1.0", "wh");
    po.addFld("minProgUnitSize", Proto.Elm.newCNum("(xdc_Int)"), 1L, "wh");
    po.addFld("minDataUnitSize", Proto.Elm.newCNum("(xdc_Int)"), 1L, "wh");
    po.addFld("dataWordSize", Proto.Elm.newCNum("(xdc_Int)"), 4L, "wh");
    po.addFld(
        "memMap",
        new Proto.Map((Proto) om.findStrict("xdc.platform.IPlatform.Memory", "host.platforms.SUN")),
        Global.newArray(new Object[] {}),
        "wh");
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.SunSparc7$$Object", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.SunSparc7.Object",
        om.findStrict("host.platforms.SUN.SunSparc7.Instance", "host.platforms.SUN"));
    fxn = Global.get(cap, "getMemoryMap");
    if (fxn != null)
      po.addFxn(
          "getMemoryMap",
          (Proto.Fxn)
              om.findStrict("xdc.platform.ICpuDataSheet$$getMemoryMap", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getRegisterSet");
    if (fxn != null)
      po.addFxn(
          "getRegisterSet",
          (Proto.Fxn)
              om.findStrict("xdc.platform.ICpuDataSheet$$getRegisterSet", "host.platforms.SUN"),
          fxn);
  }

  void Platform$$ROV() {}

  void SunSparc7$$ROV() {}

  void $$SINGLETONS() {
    pkgP.init(
        "host.platforms.SUN.Package",
        (Proto.Obj) om.findStrict("xdc.IPackage.Module", "host.platforms.SUN"));
    Scriptable cap =
        (Scriptable) Global.callFxn("loadCapsule", xdcO, "host/platforms/SUN/package.xs");
    om.bind("xdc.IPackage$$capsule", cap);
    Object fxn;
    fxn = Global.get(cap, "init");
    if (fxn != null)
      pkgP.addFxn(
          "init", (Proto.Fxn) om.findStrict("xdc.IPackage$$init", "host.platforms.SUN"), fxn);
    fxn = Global.get(cap, "close");
    if (fxn != null)
      pkgP.addFxn(
          "close", (Proto.Fxn) om.findStrict("xdc.IPackage$$close", "host.platforms.SUN"), fxn);
    fxn = Global.get(cap, "validate");
    if (fxn != null)
      pkgP.addFxn(
          "validate",
          (Proto.Fxn) om.findStrict("xdc.IPackage$$validate", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "exit");
    if (fxn != null)
      pkgP.addFxn(
          "exit", (Proto.Fxn) om.findStrict("xdc.IPackage$$exit", "host.platforms.SUN"), fxn);
    fxn = Global.get(cap, "getLibs");
    if (fxn != null)
      pkgP.addFxn(
          "getLibs", (Proto.Fxn) om.findStrict("xdc.IPackage$$getLibs", "host.platforms.SUN"), fxn);
    fxn = Global.get(cap, "getSects");
    if (fxn != null)
      pkgP.addFxn(
          "getSects",
          (Proto.Fxn) om.findStrict("xdc.IPackage$$getSects", "host.platforms.SUN"),
          fxn);
    pkgP.bind("$capsule", cap);
    pkgV.init2(pkgP, "host.platforms.SUN", Value.DEFAULT, false);
    pkgV.bind("$name", "host.platforms.SUN");
    pkgV.bind("$category", "Package");
    pkgV.bind("$$qn", "host.platforms.SUN.");
    pkgV.bind("$vers", Global.newArray("1, 0, 0, 1"));
    Value.Map atmap = (Value.Map) pkgV.getv("$attr");
    atmap.seal("length");
    imports.clear();
    imports.add(Global.newArray("xdc.platform", Global.newArray()));
    pkgV.bind("$imports", imports);
    StringBuilder sb = new StringBuilder();
    sb.append("var pkg = xdc.om['host.platforms.SUN'];\n");
    sb.append("if (pkg.$vers.length >= 3) {\n");
    sb.append("pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..'));\n");
    sb.append("}\n");
    sb.append("pkg.build.libraries = [\n");
    sb.append("];\n");
    sb.append("pkg.build.libDesc = [\n");
    sb.append("];\n");
    sb.append("if('suffix' in xdc.om['xdc.IPackage$$LibDesc']) {\n");
    sb.append("}\n");
    Global.eval(sb.toString());
  }

  void Platform$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo = (Value.Obj) om.findStrict("host.platforms.SUN.Platform", "host.platforms.SUN");
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.Platform.Module", "host.platforms.SUN");
    vo.init2(po, "host.platforms.SUN.Platform", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Module");
    vo.bind(
        "$capsule", om.findStrict("host.platforms.SUN.Platform$$capsule", "host.platforms.SUN"));
    vo.bind(
        "Instance", om.findStrict("host.platforms.SUN.Platform.Instance", "host.platforms.SUN"));
    vo.bind("Params", om.findStrict("host.platforms.SUN.Platform.Params", "host.platforms.SUN"));
    vo.bind(
        "PARAMS",
        ((Proto.Str) om.findStrict("host.platforms.SUN.Platform.Params", "host.platforms.SUN"))
            .newInstance());
    vo.bind("$package", om.findStrict("host.platforms.SUN", "host.platforms.SUN"));
    tdefs.clear();
    proxies.clear();
    mcfgs.clear();
    vo.bind("Board", om.findStrict("xdc.platform.IPlatform.Board", "host.platforms.SUN"));
    tdefs.add(om.findStrict("xdc.platform.IPlatform.Board", "host.platforms.SUN"));
    vo.bind("Memory", om.findStrict("xdc.platform.IPlatform.Memory", "host.platforms.SUN"));
    tdefs.add(om.findStrict("xdc.platform.IPlatform.Memory", "host.platforms.SUN"));
    vo.bind("MemoryMap", om.findStrict("xdc.platform.IPlatform.MemoryMap", "host.platforms.SUN"));
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray()));
    ((Value.Arr) pkgV.getv("$modules")).add(vo);
    ((Value.Arr) om.findStrict("$modules", "host.platforms.SUN")).add(vo);
    vo.bind("$$instflag", 1);
    vo.bind("$$iobjflag", 1);
    vo.bind("$$sizeflag", 1);
    vo.bind("$$dlgflag", 0);
    vo.bind("$$iflag", 1);
    vo.bind("$$romcfgs", "|");
    Proto.Str ps = (Proto.Str) vo.find("Module_State");
    if (ps != null) vo.bind("$object", ps.newInstance());
    vo.bind(
        "$$meta_iobj", om.has("host.platforms.SUN.Platform$$instance$static$init", null) ? 1 : 0);
    vo.bind("$$fxntab", Global.newArray());
    vo.bind("$$logEvtCfgs", Global.newArray());
    vo.bind("$$errorDescCfgs", Global.newArray());
    vo.bind("$$assertDescCfgs", Global.newArray());
    Value.Map atmap = (Value.Map) vo.getv("$attr");
    atmap.seal("length");
    vo.bind("Object", om.findStrict("host.platforms.SUN.Platform.Object", "host.platforms.SUN"));
    pkgV.bind("Platform", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("Platform");
  }

  void SunSparc7$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo = (Value.Obj) om.findStrict("host.platforms.SUN.SunSparc7", "host.platforms.SUN");
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.SunSparc7.Module", "host.platforms.SUN");
    vo.init2(po, "host.platforms.SUN.SunSparc7", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Module");
    vo.bind(
        "$capsule", om.findStrict("host.platforms.SUN.SunSparc7$$capsule", "host.platforms.SUN"));
    vo.bind(
        "Instance", om.findStrict("host.platforms.SUN.SunSparc7.Instance", "host.platforms.SUN"));
    vo.bind("Params", om.findStrict("host.platforms.SUN.SunSparc7.Params", "host.platforms.SUN"));
    vo.bind(
        "PARAMS",
        ((Proto.Str) om.findStrict("host.platforms.SUN.SunSparc7.Params", "host.platforms.SUN"))
            .newInstance());
    vo.bind("$package", om.findStrict("host.platforms.SUN", "host.platforms.SUN"));
    tdefs.clear();
    proxies.clear();
    mcfgs.clear();
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray()));
    ((Value.Arr) pkgV.getv("$modules")).add(vo);
    ((Value.Arr) om.findStrict("$modules", "host.platforms.SUN")).add(vo);
    vo.bind("$$instflag", 1);
    vo.bind("$$iobjflag", 1);
    vo.bind("$$sizeflag", 1);
    vo.bind("$$dlgflag", 0);
    vo.bind("$$iflag", 1);
    vo.bind("$$romcfgs", "|");
    Proto.Str ps = (Proto.Str) vo.find("Module_State");
    if (ps != null) vo.bind("$object", ps.newInstance());
    vo.bind(
        "$$meta_iobj", om.has("host.platforms.SUN.SunSparc7$$instance$static$init", null) ? 1 : 0);
    vo.bind("$$fxntab", Global.newArray());
    vo.bind("$$logEvtCfgs", Global.newArray());
    vo.bind("$$errorDescCfgs", Global.newArray());
    vo.bind("$$assertDescCfgs", Global.newArray());
    Value.Map atmap = (Value.Map) vo.getv("$attr");
    atmap.seal("length");
    vo.bind("Object", om.findStrict("host.platforms.SUN.SunSparc7.Object", "host.platforms.SUN"));
    pkgV.bind("SunSparc7", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("SunSparc7");
  }

  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn(
        "module$meta$init",
        (Scriptable) om.findStrict("host.platforms.SUN.Platform", "host.platforms.SUN"));
    Global.callFxn(
        "module$meta$init",
        (Scriptable) om.findStrict("host.platforms.SUN.SunSparc7", "host.platforms.SUN"));
    Global.callFxn("init", pkgV);
    ((Value.Obj) om.getv("host.platforms.SUN.Platform")).bless();
    ((Value.Obj) om.getv("host.platforms.SUN.SunSparc7")).bless();
    ((Value.Arr) om.findStrict("$packages", "host.platforms.SUN")).add(pkgV);
  }

  public void exec(Scriptable xdcO, Session ses) {
    this.xdcO = xdcO;
    this.ses = ses;
    om = (Value.Obj) xdcO.get("om", null);

    Object o = om.geto("$name");
    String s = o instanceof String ? (String) o : null;
    isCFG = s != null && s.equals("cfg");
    isROV = s != null && s.equals("rov");

    $$IMPORTS();
    $$OBJECTS();
    Platform$$OBJECTS();
    SunSparc7$$OBJECTS();
    Platform$$CONSTS();
    SunSparc7$$CONSTS();
    Platform$$CREATES();
    SunSparc7$$CREATES();
    Platform$$FUNCTIONS();
    SunSparc7$$FUNCTIONS();
    Platform$$SIZES();
    SunSparc7$$SIZES();
    Platform$$TYPES();
    SunSparc7$$TYPES();
    if (isROV) {
      Platform$$ROV();
      SunSparc7$$ROV();
    } // isROV
    $$SINGLETONS();
    Platform$$SINGLETONS();
    SunSparc7$$SINGLETONS();
    $$INITIALIZATION();
  }
}
public class ti_sdo_ce_utils_rtcfg_osal {
  static final String VERS = "@(#) xdc-y21\n";

  static final Proto.Elm $$T_Bool = Proto.Elm.newBool();
  static final Proto.Elm $$T_Num = Proto.Elm.newNum();
  static final Proto.Elm $$T_Str = Proto.Elm.newStr();
  static final Proto.Elm $$T_Obj = Proto.Elm.newObj();

  static final Proto.Fxn $$T_Met = new Proto.Fxn(null, null, 0, -1, false);
  static final Proto.Map $$T_Map = new Proto.Map($$T_Obj);
  static final Proto.Arr $$T_Vec = new Proto.Arr($$T_Obj);

  static final XScriptO $$DEFAULT = Value.DEFAULT;
  static final Object $$UNDEF = Undefined.instance;

  static final Proto.Obj $$Package = (Proto.Obj) Global.get("$$Package");
  static final Proto.Obj $$Module = (Proto.Obj) Global.get("$$Module");
  static final Proto.Obj $$Instance = (Proto.Obj) Global.get("$$Instance");
  static final Proto.Obj $$Params = (Proto.Obj) Global.get("$$Params");

  static final Object $$objFldGet = Global.get("$$objFldGet");
  static final Object $$objFldSet = Global.get("$$objFldSet");
  static final Object $$proxyGet = Global.get("$$proxyGet");
  static final Object $$proxySet = Global.get("$$proxySet");
  static final Object $$delegGet = Global.get("$$delegGet");
  static final Object $$delegSet = Global.get("$$delegSet");

  Scriptable xdcO;
  Session ses;
  Value.Obj om;

  boolean isROV;
  boolean isCFG;

  Proto.Obj pkgP;
  Value.Obj pkgV;

  ArrayList<Object> imports = new ArrayList<Object>();
  ArrayList<Object> loggables = new ArrayList<Object>();
  ArrayList<Object> mcfgs = new ArrayList<Object>();
  ArrayList<Object> icfgs = new ArrayList<Object>();
  ArrayList<String> inherits = new ArrayList<String>();
  ArrayList<Object> proxies = new ArrayList<Object>();
  ArrayList<Object> sizes = new ArrayList<Object>();
  ArrayList<Object> tdefs = new ArrayList<Object>();

  void $$IMPORTS() {
    Global.callFxn("loadPackage", xdcO, "xdc");
    Global.callFxn("loadPackage", xdcO, "xdc.corevers");
  }

  void $$OBJECTS() {
    pkgP = (Proto.Obj) om.bind("ti.sdo.ce.utils.rtcfg.osal.Package", new Proto.Obj());
    pkgV =
        (Value.Obj)
            om.bind(
                "ti.sdo.ce.utils.rtcfg.osal", new Value.Obj("ti.sdo.ce.utils.rtcfg.osal", pkgP));
  }

  void $$SINGLETONS() {
    pkgP.init(
        "ti.sdo.ce.utils.rtcfg.osal.Package",
        (Proto.Obj) om.findStrict("xdc.IPackage.Module", "ti.sdo.ce.utils.rtcfg.osal"));
    pkgP.bind("$capsule", $$UNDEF);
    pkgV.init2(pkgP, "ti.sdo.ce.utils.rtcfg.osal", Value.DEFAULT, false);
    pkgV.bind("$name", "ti.sdo.ce.utils.rtcfg.osal");
    pkgV.bind("$category", "Package");
    pkgV.bind("$$qn", "ti.sdo.ce.utils.rtcfg.osal.");
    pkgV.bind("$vers", Global.newArray("1, 0, 0"));
    Value.Map atmap = (Value.Map) pkgV.getv("$attr");
    atmap.seal("length");
    imports.clear();
    pkgV.bind("$imports", imports);
    StringBuilder sb = new StringBuilder();
    sb.append("var pkg = xdc.om['ti.sdo.ce.utils.rtcfg.osal'];\n");
    sb.append("if (pkg.$vers.length >= 3) {\n");
    sb.append("pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..'));\n");
    sb.append("}\n");
    sb.append("pkg.build.libraries = [\n");
    sb.append("];\n");
    sb.append("pkg.build.libDesc = [\n");
    sb.append("];\n");
    Global.eval(sb.toString());
  }

  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn("init", pkgV);
    ((Value.Arr) om.findStrict("$packages", "ti.sdo.ce.utils.rtcfg.osal")).add(pkgV);
  }

  public void exec(Scriptable xdcO, Session ses) {
    this.xdcO = xdcO;
    this.ses = ses;
    om = (Value.Obj) xdcO.get("om", null);

    Object o = om.geto("$name");
    String s = o instanceof String ? (String) o : null;
    isCFG = s != null && s.equals("cfg");
    isROV = s != null && s.equals("rov");

    $$IMPORTS();
    $$OBJECTS();
    if (isROV) {} // isROV
    $$SINGLETONS();
    $$INITIALIZATION();
  }
}
public class ti_sdo_ce_universal {
  static final String VERS = "@(#) xdc-y25\n";

  static final Proto.Elm $$T_Bool = Proto.Elm.newBool();
  static final Proto.Elm $$T_Num = Proto.Elm.newNum();
  static final Proto.Elm $$T_Str = Proto.Elm.newStr();
  static final Proto.Elm $$T_Obj = Proto.Elm.newObj();

  static final Proto.Fxn $$T_Met = new Proto.Fxn(null, null, 0, -1, false);
  static final Proto.Map $$T_Map = new Proto.Map($$T_Obj);
  static final Proto.Arr $$T_Vec = new Proto.Arr($$T_Obj);

  static final XScriptO $$DEFAULT = Value.DEFAULT;
  static final Object $$UNDEF = Undefined.instance;

  static final Proto.Obj $$Package = (Proto.Obj) Global.get("$$Package");
  static final Proto.Obj $$Module = (Proto.Obj) Global.get("$$Module");
  static final Proto.Obj $$Instance = (Proto.Obj) Global.get("$$Instance");
  static final Proto.Obj $$Params = (Proto.Obj) Global.get("$$Params");

  static final Object $$objFldGet = Global.get("$$objFldGet");
  static final Object $$objFldSet = Global.get("$$objFldSet");
  static final Object $$proxyGet = Global.get("$$proxyGet");
  static final Object $$proxySet = Global.get("$$proxySet");
  static final Object $$delegGet = Global.get("$$delegGet");
  static final Object $$delegSet = Global.get("$$delegSet");

  Scriptable xdcO;
  Session ses;
  Value.Obj om;

  boolean isROV;
  boolean isCFG;

  Proto.Obj pkgP;
  Value.Obj pkgV;

  ArrayList<Object> imports = new ArrayList<Object>();
  ArrayList<Object> loggables = new ArrayList<Object>();
  ArrayList<Object> mcfgs = new ArrayList<Object>();
  ArrayList<Object> icfgs = new ArrayList<Object>();
  ArrayList<String> inherits = new ArrayList<String>();
  ArrayList<Object> proxies = new ArrayList<Object>();
  ArrayList<Object> sizes = new ArrayList<Object>();
  ArrayList<Object> tdefs = new ArrayList<Object>();

  void $$IMPORTS() {
    Global.callFxn("loadPackage", xdcO, "xdc");
    Global.callFxn("loadPackage", xdcO, "xdc.corevers");
    Global.callFxn("loadPackage", xdcO, "ti.sdo.ce");
  }

  void $$OBJECTS() {
    pkgP = (Proto.Obj) om.bind("ti.sdo.ce.universal.Package", new Proto.Obj());
    pkgV = (Value.Obj) om.bind("ti.sdo.ce.universal", new Value.Obj("ti.sdo.ce.universal", pkgP));
  }

  void UNIVERSALConfig$$OBJECTS() {
    Proto.Obj po, spo;
    Value.Obj vo;

    po = (Proto.Obj) om.bind("ti.sdo.ce.universal.UNIVERSALConfig.Module", new Proto.Obj());
    vo =
        (Value.Obj)
            om.bind(
                "ti.sdo.ce.universal.UNIVERSALConfig",
                new Value.Obj("ti.sdo.ce.universal.UNIVERSALConfig", po));
    pkgV.bind("UNIVERSALConfig", vo);
    // decls
  }

  void IUNIVERSAL$$OBJECTS() {
    Proto.Obj po, spo;
    Value.Obj vo;

    po = (Proto.Obj) om.bind("ti.sdo.ce.universal.IUNIVERSAL.Module", new Proto.Obj());
    vo =
        (Value.Obj)
            om.bind(
                "ti.sdo.ce.universal.IUNIVERSAL",
                new Value.Obj("ti.sdo.ce.universal.IUNIVERSAL", po));
    pkgV.bind("IUNIVERSAL", vo);
    // decls
  }

  void UNIVERSALConfig$$CONSTS() {
    // module UNIVERSALConfig
  }

  void IUNIVERSAL$$CONSTS() {
    // interface IUNIVERSAL
  }

  void UNIVERSALConfig$$CREATES() {
    Proto.Fxn fxn;
    StringBuilder sb;
  }

  void IUNIVERSAL$$CREATES() {
    Proto.Fxn fxn;
    StringBuilder sb;
  }

  void UNIVERSALConfig$$FUNCTIONS() {
    Proto.Fxn fxn;
  }

  void IUNIVERSAL$$FUNCTIONS() {
    Proto.Fxn fxn;
  }

  void UNIVERSALConfig$$SIZES() {}

  void IUNIVERSAL$$SIZES() {}

  void UNIVERSALConfig$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    po =
        (Proto.Obj)
            om.findStrict("ti.sdo.ce.universal.UNIVERSALConfig.Module", "ti.sdo.ce.universal");
    po.init("ti.sdo.ce.universal.UNIVERSALConfig.Module", $$Module);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("codecsList", $$T_Obj, $$UNDEF, "wh");
  }

  void IUNIVERSAL$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    po = (Proto.Obj) om.findStrict("ti.sdo.ce.universal.IUNIVERSAL.Module", "ti.sdo.ce.universal");
    po.init(
        "ti.sdo.ce.universal.IUNIVERSAL.Module",
        om.findStrict("ti.sdo.ce.ICodec.Module", "ti.sdo.ce.universal"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("serverFxns", $$T_Str, "UNIVERSAL_SKEL", "wh");
    po.addFld("stubFxns", $$T_Str, "UNIVERSAL_STUBS", "wh");
    po.addFld("rpcProtocolVersion", Proto.Elm.newCNum("(xdc_Int)"), 1L, "rh");
    po.addFld("codecClassConfigurable", $$T_Bool, true, "rh");
    po.addFld(
        "manageInBufsCache",
        new Proto.Arr($$T_Bool, false, xdc.services.intern.xsr.Enum.intValue(16L)),
        Global.newArray(
            new Object[] {
              true, true, true, true, true, true, true, true, true, true, true, true, true, true,
              true, true
            }),
        "wh");
    po.addFld(
        "manageInOutBufsCache",
        new Proto.Arr($$T_Bool, false, xdc.services.intern.xsr.Enum.intValue(16L)),
        Global.newArray(
            new Object[] {
              true, true, true, true, true, true, true, true, true, true, true, true, true, true,
              true, true
            }),
        "wh");
    po.addFld(
        "manageOutBufsCache",
        new Proto.Arr($$T_Bool, false, xdc.services.intern.xsr.Enum.intValue(16L)),
        Global.newArray(
            new Object[] {
              true, true, true, true, true, true, true, true, true, true, true, true, true, true,
              true, true
            }),
        "wh");
  }

  void UNIVERSALConfig$$ROV() {}

  void IUNIVERSAL$$ROV() {}

  void $$SINGLETONS() {
    pkgP.init(
        "ti.sdo.ce.universal.Package",
        (Proto.Obj) om.findStrict("xdc.IPackage.Module", "ti.sdo.ce.universal"));
    Scriptable cap =
        (Scriptable) Global.callFxn("loadCapsule", xdcO, "ti/sdo/ce/universal/package.xs");
    om.bind("xdc.IPackage$$capsule", cap);
    Object fxn;
    fxn = Global.get(cap, "init");
    if (fxn != null)
      pkgP.addFxn(
          "init", (Proto.Fxn) om.findStrict("xdc.IPackage$$init", "ti.sdo.ce.universal"), fxn);
    fxn = Global.get(cap, "close");
    if (fxn != null)
      pkgP.addFxn(
          "close", (Proto.Fxn) om.findStrict("xdc.IPackage$$close", "ti.sdo.ce.universal"), fxn);
    fxn = Global.get(cap, "validate");
    if (fxn != null)
      pkgP.addFxn(
          "validate",
          (Proto.Fxn) om.findStrict("xdc.IPackage$$validate", "ti.sdo.ce.universal"),
          fxn);
    fxn = Global.get(cap, "exit");
    if (fxn != null)
      pkgP.addFxn(
          "exit", (Proto.Fxn) om.findStrict("xdc.IPackage$$exit", "ti.sdo.ce.universal"), fxn);
    fxn = Global.get(cap, "getLibs");
    if (fxn != null)
      pkgP.addFxn(
          "getLibs",
          (Proto.Fxn) om.findStrict("xdc.IPackage$$getLibs", "ti.sdo.ce.universal"),
          fxn);
    fxn = Global.get(cap, "getSects");
    if (fxn != null)
      pkgP.addFxn(
          "getSects",
          (Proto.Fxn) om.findStrict("xdc.IPackage$$getSects", "ti.sdo.ce.universal"),
          fxn);
    pkgP.bind("$capsule", cap);
    pkgV.init2(pkgP, "ti.sdo.ce.universal", Value.DEFAULT, false);
    pkgV.bind("$name", "ti.sdo.ce.universal");
    pkgV.bind("$category", "Package");
    pkgV.bind("$$qn", "ti.sdo.ce.universal.");
    pkgV.bind("$vers", Global.newArray("1, 0, 0"));
    Value.Map atmap = (Value.Map) pkgV.getv("$attr");
    atmap.seal("length");
    imports.clear();
    pkgV.bind("$imports", imports);
    StringBuilder sb = new StringBuilder();
    sb.append("var pkg = xdc.om['ti.sdo.ce.universal'];\n");
    sb.append("if (pkg.$vers.length >= 3) {\n");
    sb.append("pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..'));\n");
    sb.append("}\n");
    sb.append("pkg.build.libraries = [\n");
    sb.append("'lib/debug/universal.aem3',\n");
    sb.append("'lib/release/universal.aem3',\n");
    sb.append("'lib/debug/universal.ae674',\n");
    sb.append("'lib/release/universal.ae674',\n");
    sb.append("'lib/debug/universal.av5T',\n");
    sb.append("'lib/release/universal.av5T',\n");
    sb.append("];\n");
    sb.append("pkg.build.libDesc = [\n");
    sb.append("['lib/debug/universal.aem3', {target: 'ti.targets.arm.elf.M3', suffix: 'em3'}],\n");
    sb.append(
        "['lib/release/universal.aem3', {target: 'ti.targets.arm.elf.M3', suffix: 'em3'}],\n");
    sb.append("['lib/debug/universal.ae674', {target: 'ti.targets.elf.C674', suffix: 'e674'}],\n");
    sb.append(
        "['lib/release/universal.ae674', {target: 'ti.targets.elf.C674', suffix: 'e674'}],\n");
    sb.append(
        "['lib/debug/universal.av5T', {target: 'gnu.targets.arm.GCArmv5T', suffix: 'v5T'}],\n");
    sb.append(
        "['lib/release/universal.av5T', {target: 'gnu.targets.arm.GCArmv5T', suffix: 'v5T'}],\n");
    sb.append("];\n");
    Global.eval(sb.toString());
  }

  void UNIVERSALConfig$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo = (Value.Obj) om.findStrict("ti.sdo.ce.universal.UNIVERSALConfig", "ti.sdo.ce.universal");
    po =
        (Proto.Obj)
            om.findStrict("ti.sdo.ce.universal.UNIVERSALConfig.Module", "ti.sdo.ce.universal");
    vo.init2(po, "ti.sdo.ce.universal.UNIVERSALConfig", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Module");
    vo.bind("$capsule", $$UNDEF);
    vo.bind("$package", om.findStrict("ti.sdo.ce.universal", "ti.sdo.ce.universal"));
    tdefs.clear();
    proxies.clear();
    mcfgs.clear();
    icfgs.clear();
    inherits.clear();
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray()));
    vo.bind("$$icfgs", Global.newArray(icfgs.toArray()));
    vo.bind("$$inherits", Global.newArray(inherits.toArray()));
    ((Value.Arr) pkgV.getv("$modules")).add(vo);
    ((Value.Arr) om.findStrict("$modules", "ti.sdo.ce.universal")).add(vo);
    vo.bind("$$instflag", 0);
    vo.bind("$$iobjflag", 1);
    vo.bind("$$sizeflag", 1);
    vo.bind("$$dlgflag", 0);
    vo.bind("$$iflag", 0);
    vo.bind("$$romcfgs", "|");
    vo.bind("$$nortsflag", 0);
    Proto.Str ps = (Proto.Str) vo.find("Module_State");
    if (ps != null) vo.bind("$object", ps.newInstance());
    vo.bind(
        "$$meta_iobj",
        om.has("ti.sdo.ce.universal.UNIVERSALConfig$$instance$static$init", null) ? 1 : 0);
    vo.bind("$$fxntab", Global.newArray());
    vo.bind("$$logEvtCfgs", Global.newArray());
    vo.bind("$$errorDescCfgs", Global.newArray());
    vo.bind("$$assertDescCfgs", Global.newArray());
    Value.Map atmap = (Value.Map) vo.getv("$attr");
    atmap.setElem("", "./UNIVERSALConfig.xdt");
    atmap.seal("length");
    vo.bind("TEMPLATE$", "./UNIVERSALConfig.xdt");
    pkgV.bind("UNIVERSALConfig", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("UNIVERSALConfig");
  }

  void IUNIVERSAL$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo = (Value.Obj) om.findStrict("ti.sdo.ce.universal.IUNIVERSAL", "ti.sdo.ce.universal");
    po = (Proto.Obj) om.findStrict("ti.sdo.ce.universal.IUNIVERSAL.Module", "ti.sdo.ce.universal");
    vo.init2(po, "ti.sdo.ce.universal.IUNIVERSAL", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Interface");
    vo.bind("$capsule", $$UNDEF);
    vo.bind("$package", om.findStrict("ti.sdo.ce.universal", "ti.sdo.ce.universal"));
    tdefs.clear();
    proxies.clear();
    inherits.clear();
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    inherits.add("ti.sdo.ce");
    vo.bind("$$inherits", Global.newArray(inherits.toArray()));
    ((Value.Arr) pkgV.getv("$interfaces")).add(vo);
    pkgV.bind("IUNIVERSAL", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("IUNIVERSAL");
    vo.seal(null);
  }

  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn(
        "module$meta$init",
        (Scriptable) om.findStrict("ti.sdo.ce.universal.UNIVERSALConfig", "ti.sdo.ce.universal"));
    Global.callFxn("init", pkgV);
    ((Value.Obj) om.getv("ti.sdo.ce.universal.UNIVERSALConfig")).bless();
    ((Value.Obj) om.getv("ti.sdo.ce.universal.IUNIVERSAL")).bless();
    ((Value.Arr) om.findStrict("$packages", "ti.sdo.ce.universal")).add(pkgV);
  }

  public void exec(Scriptable xdcO, Session ses) {
    this.xdcO = xdcO;
    this.ses = ses;
    om = (Value.Obj) xdcO.get("om", null);

    Object o = om.geto("$name");
    String s = o instanceof String ? (String) o : null;
    isCFG = s != null && s.equals("cfg");
    isROV = s != null && s.equals("rov");

    $$IMPORTS();
    $$OBJECTS();
    UNIVERSALConfig$$OBJECTS();
    IUNIVERSAL$$OBJECTS();
    UNIVERSALConfig$$CONSTS();
    IUNIVERSAL$$CONSTS();
    UNIVERSALConfig$$CREATES();
    IUNIVERSAL$$CREATES();
    UNIVERSALConfig$$FUNCTIONS();
    IUNIVERSAL$$FUNCTIONS();
    UNIVERSALConfig$$SIZES();
    IUNIVERSAL$$SIZES();
    UNIVERSALConfig$$TYPES();
    IUNIVERSAL$$TYPES();
    if (isROV) {
      UNIVERSALConfig$$ROV();
      IUNIVERSAL$$ROV();
    } // isROV
    $$SINGLETONS();
    UNIVERSALConfig$$SINGLETONS();
    IUNIVERSAL$$SINGLETONS();
    $$INITIALIZATION();
  }
}
예제 #4
0
public class xdc_tools {
  static final String VERS = "@(#) xdc-y25\n";

  static final Proto.Elm $$T_Bool = Proto.Elm.newBool();
  static final Proto.Elm $$T_Num = Proto.Elm.newNum();
  static final Proto.Elm $$T_Str = Proto.Elm.newStr();
  static final Proto.Elm $$T_Obj = Proto.Elm.newObj();

  static final Proto.Fxn $$T_Met = new Proto.Fxn(null, null, 0, -1, false);
  static final Proto.Map $$T_Map = new Proto.Map($$T_Obj);
  static final Proto.Arr $$T_Vec = new Proto.Arr($$T_Obj);

  static final XScriptO $$DEFAULT = Value.DEFAULT;
  static final Object $$UNDEF = Undefined.instance;

  static final Proto.Obj $$Package = (Proto.Obj) Global.get("$$Package");
  static final Proto.Obj $$Module = (Proto.Obj) Global.get("$$Module");
  static final Proto.Obj $$Instance = (Proto.Obj) Global.get("$$Instance");
  static final Proto.Obj $$Params = (Proto.Obj) Global.get("$$Params");

  static final Object $$objFldGet = Global.get("$$objFldGet");
  static final Object $$objFldSet = Global.get("$$objFldSet");
  static final Object $$proxyGet = Global.get("$$proxyGet");
  static final Object $$proxySet = Global.get("$$proxySet");
  static final Object $$delegGet = Global.get("$$delegGet");
  static final Object $$delegSet = Global.get("$$delegSet");

  Scriptable xdcO;
  Session ses;
  Value.Obj om;

  boolean isROV;
  boolean isCFG;

  Proto.Obj pkgP;
  Value.Obj pkgV;

  ArrayList<Object> imports = new ArrayList<Object>();
  ArrayList<Object> loggables = new ArrayList<Object>();
  ArrayList<Object> mcfgs = new ArrayList<Object>();
  ArrayList<Object> icfgs = new ArrayList<Object>();
  ArrayList<String> inherits = new ArrayList<String>();
  ArrayList<Object> proxies = new ArrayList<Object>();
  ArrayList<Object> sizes = new ArrayList<Object>();
  ArrayList<Object> tdefs = new ArrayList<Object>();

  void $$IMPORTS() {
    Global.callFxn("loadPackage", xdcO, "xdc");
    Global.callFxn("loadPackage", xdcO, "xdc.corevers");
  }

  void $$OBJECTS() {
    pkgP = (Proto.Obj) om.bind("xdc.tools.Package", new Proto.Obj());
    pkgV = (Value.Obj) om.bind("xdc.tools", new Value.Obj("xdc.tools", pkgP));
  }

  void Cmdr$$OBJECTS() {
    Proto.Obj po, spo;
    Value.Obj vo;

    po = (Proto.Obj) om.bind("xdc.tools.Cmdr.Module", new Proto.Obj());
    vo = (Value.Obj) om.bind("xdc.tools.Cmdr", new Value.Obj("xdc.tools.Cmdr", po));
    pkgV.bind("Cmdr", vo);
    // decls
    om.bind("xdc.tools.Cmdr.Context", new Proto.Enm("xdc.tools.Cmdr.Context"));
    // insts
    Object insP = om.bind("xdc.tools.Cmdr.Instance", new Proto.Obj());
    po = (Proto.Obj) om.bind("xdc.tools.Cmdr$$Object", new Proto.Obj());
    Object objP = om.bind("xdc.tools.Cmdr.Object", new Proto.Str(po, true));
    po = (Proto.Obj) om.bind("xdc.tools.Cmdr$$Params", new Proto.Obj());
    om.bind("xdc.tools.Cmdr.Params", new Proto.Str(po, true));
  }

  void ResourceBundle$$OBJECTS() {
    Proto.Obj po, spo;
    Value.Obj vo;

    po = (Proto.Obj) om.bind("xdc.tools.ResourceBundle.Module", new Proto.Obj());
    vo =
        (Value.Obj)
            om.bind("xdc.tools.ResourceBundle", new Value.Obj("xdc.tools.ResourceBundle", po));
    pkgV.bind("ResourceBundle", vo);
    // decls
    // insts
    Object insP = om.bind("xdc.tools.ResourceBundle.Instance", new Proto.Obj());
    po = (Proto.Obj) om.bind("xdc.tools.ResourceBundle$$Object", new Proto.Obj());
    Object objP = om.bind("xdc.tools.ResourceBundle.Object", new Proto.Str(po, true));
    po = (Proto.Obj) om.bind("xdc.tools.ResourceBundle$$Params", new Proto.Obj());
    om.bind("xdc.tools.ResourceBundle.Params", new Proto.Str(po, true));
  }

  void ICmd$$OBJECTS() {
    Proto.Obj po, spo;
    Value.Obj vo;

    po = (Proto.Obj) om.bind("xdc.tools.ICmd.Module", new Proto.Obj());
    vo = (Value.Obj) om.bind("xdc.tools.ICmd", new Value.Obj("xdc.tools.ICmd", po));
    pkgV.bind("ICmd", vo);
    // decls
    // insts
    Object insP = om.bind("xdc.tools.ICmd.Instance", new Proto.Obj());
    po = (Proto.Obj) om.bind("xdc.tools.ICmd$$Object", new Proto.Obj());
    Object objP = om.bind("xdc.tools.ICmd.Object", new Proto.Str(po, true));
    po = (Proto.Obj) om.bind("xdc.tools.ICmd$$Params", new Proto.Obj());
    om.bind("xdc.tools.ICmd.Params", new Proto.Str(po, true));
  }

  void IProductView$$OBJECTS() {
    Proto.Obj po, spo;
    Value.Obj vo;

    po = (Proto.Obj) om.bind("xdc.tools.IProductView.Module", new Proto.Obj());
    vo = (Value.Obj) om.bind("xdc.tools.IProductView", new Value.Obj("xdc.tools.IProductView", po));
    pkgV.bind("IProductView", vo);
    // decls
    spo = (Proto.Obj) om.bind("xdc.tools.IProductView$$ProductElemDesc", new Proto.Obj());
    om.bind("xdc.tools.IProductView.ProductElemDesc", new Proto.Str(spo, true));
  }

  void IRtscProductTemplate$$OBJECTS() {
    Proto.Obj po, spo;
    Value.Obj vo;

    po = (Proto.Obj) om.bind("xdc.tools.IRtscProductTemplate.Module", new Proto.Obj());
    vo =
        (Value.Obj)
            om.bind(
                "xdc.tools.IRtscProductTemplate",
                new Value.Obj("xdc.tools.IRtscProductTemplate", po));
    pkgV.bind("IRtscProductTemplate", vo);
    // decls
    spo = (Proto.Obj) om.bind("xdc.tools.IRtscProductTemplate$$TemplateInfo", new Proto.Obj());
    om.bind("xdc.tools.IRtscProductTemplate.TemplateInfo", new Proto.Str(spo, true));
  }

  void Cmdr$$CONSTS() {
    // module Cmdr
    om.bind(
        "xdc.tools.Cmdr.SHELL",
        xdc.services.intern.xsr.Enum.make(
            (Proto.Enm) om.findStrict("xdc.tools.Cmdr.Context", "xdc.tools"),
            "xdc.tools.Cmdr.SHELL",
            0));
    om.bind(
        "xdc.tools.Cmdr.SCRIPT",
        xdc.services.intern.xsr.Enum.make(
            (Proto.Enm) om.findStrict("xdc.tools.Cmdr.Context", "xdc.tools"),
            "xdc.tools.Cmdr.SCRIPT",
            1));
  }

  void ResourceBundle$$CONSTS() {
    // module ResourceBundle
  }

  void ICmd$$CONSTS() {
    // interface ICmd
  }

  void IProductView$$CONSTS() {
    // interface IProductView
  }

  void IRtscProductTemplate$$CONSTS() {
    // interface IRtscProductTemplate
  }

  void Cmdr$$CREATES() {
    Proto.Fxn fxn;
    StringBuilder sb;

    fxn =
        (Proto.Fxn)
            om.bind(
                "xdc.tools.Cmdr$$create",
                new Proto.Fxn(
                    om.findStrict("xdc.tools.Cmdr.Module", "xdc.tools"),
                    om.findStrict("xdc.tools.Cmdr.Instance", "xdc.tools"),
                    2,
                    1,
                    false));
    fxn.addArg(0, "cmdmod", $$T_Obj, $$UNDEF);
    fxn.addArg(
        1,
        "__params",
        (Proto) om.findStrict("xdc.tools.Cmdr.Params", "xdc.tools"),
        Global.newObject());
    sb = new StringBuilder();
    sb.append("xdc$tools$Cmdr$$create = function( cmdmod, __params ) {\n");
    sb.append("var __mod = xdc.om['xdc.tools.Cmdr'];\n");
    sb.append("var __inst = xdc.om['xdc.tools.Cmdr.Instance'].$$make();\n");
    sb.append("__inst.$$bind('$package', xdc.om['xdc.tools']);\n");
    sb.append("__inst.$$bind('$index', __mod.$instances.length);\n");
    sb.append("__inst.$$bind('$category', 'Instance');\n");
    sb.append("__inst.$$bind('$args', {cmdmod:cmdmod});\n");
    sb.append("__inst.$$bind('$module', __mod);\n");
    sb.append("__mod.$instances.$add(__inst);\n");
    sb.append("for (var __p in __params) __inst[__p] = __params[__p];\n");
    sb.append("var save = xdc.om.$curpkg;\n");
    sb.append("xdc.om.$$bind('$curpkg', __mod.$package.$name);\n");
    sb.append("__mod.instance$meta$init.$fxn.apply(__inst, [cmdmod]);\n");
    sb.append("xdc.om.$$bind('$curpkg', save);\n");
    sb.append("__inst.$$bless();\n");
    sb.append("return __inst;\n");
    sb.append("}\n");
    Global.eval(sb.toString());
    fxn =
        (Proto.Fxn)
            om.bind(
                "xdc.tools.Cmdr$$construct",
                new Proto.Fxn(
                    om.findStrict("xdc.tools.Cmdr.Module", "xdc.tools"), null, 3, 1, false));
    fxn.addArg(0, "__obj", (Proto) om.findStrict("xdc.tools.Cmdr$$Object", "xdc.tools"), null);
    fxn.addArg(1, "cmdmod", $$T_Obj, $$UNDEF);
    fxn.addArg(
        2,
        "__params",
        (Proto) om.findStrict("xdc.tools.Cmdr.Params", "xdc.tools"),
        Global.newObject());
    sb = new StringBuilder();
    sb.append("xdc$tools$Cmdr$$construct = function( __obj, cmdmod, __params ) {\n");
    sb.append("var __mod = xdc.om['xdc.tools.Cmdr'];\n");
    sb.append("var __inst = __obj;\n");
    sb.append("__inst.$$bind('$args', {cmdmod:cmdmod});\n");
    sb.append("__inst.$$bind('$module', __mod);\n");
    sb.append("__mod.$objects.$add(__inst);\n");
    sb.append("for (var __p in __params) __inst[__p] = __params[__p];\n");
    sb.append("__inst.$$bless();\n");
    sb.append("return null;\n");
    sb.append("}\n");
    Global.eval(sb.toString());
  }

  void ResourceBundle$$CREATES() {
    Proto.Fxn fxn;
    StringBuilder sb;

    fxn =
        (Proto.Fxn)
            om.bind(
                "xdc.tools.ResourceBundle$$create",
                new Proto.Fxn(
                    om.findStrict("xdc.tools.ResourceBundle.Module", "xdc.tools"),
                    om.findStrict("xdc.tools.ResourceBundle.Instance", "xdc.tools"),
                    3,
                    2,
                    false));
    fxn.addArg(0, "pkgName", $$T_Str, $$UNDEF);
    fxn.addArg(1, "lang", $$T_Str, $$UNDEF);
    fxn.addArg(
        2,
        "__params",
        (Proto) om.findStrict("xdc.tools.ResourceBundle.Params", "xdc.tools"),
        Global.newObject());
    sb = new StringBuilder();
    sb.append("xdc$tools$ResourceBundle$$create = function( pkgName, lang, __params ) {\n");
    sb.append("var __mod = xdc.om['xdc.tools.ResourceBundle'];\n");
    sb.append("var __inst = xdc.om['xdc.tools.ResourceBundle.Instance'].$$make();\n");
    sb.append("__inst.$$bind('$package', xdc.om['xdc.tools']);\n");
    sb.append("__inst.$$bind('$index', __mod.$instances.length);\n");
    sb.append("__inst.$$bind('$category', 'Instance');\n");
    sb.append("__inst.$$bind('$args', {pkgName:pkgName, lang:lang});\n");
    sb.append("__inst.$$bind('$module', __mod);\n");
    sb.append("__mod.$instances.$add(__inst);\n");
    sb.append("for (var __p in __params) __inst[__p] = __params[__p];\n");
    sb.append("var save = xdc.om.$curpkg;\n");
    sb.append("xdc.om.$$bind('$curpkg', __mod.$package.$name);\n");
    sb.append("__mod.instance$meta$init.$fxn.apply(__inst, [pkgName, lang]);\n");
    sb.append("xdc.om.$$bind('$curpkg', save);\n");
    sb.append("__inst.$$bless();\n");
    sb.append("return __inst;\n");
    sb.append("}\n");
    Global.eval(sb.toString());
    fxn =
        (Proto.Fxn)
            om.bind(
                "xdc.tools.ResourceBundle$$construct",
                new Proto.Fxn(
                    om.findStrict("xdc.tools.ResourceBundle.Module", "xdc.tools"),
                    null,
                    4,
                    2,
                    false));
    fxn.addArg(
        0, "__obj", (Proto) om.findStrict("xdc.tools.ResourceBundle$$Object", "xdc.tools"), null);
    fxn.addArg(1, "pkgName", $$T_Str, $$UNDEF);
    fxn.addArg(2, "lang", $$T_Str, $$UNDEF);
    fxn.addArg(
        3,
        "__params",
        (Proto) om.findStrict("xdc.tools.ResourceBundle.Params", "xdc.tools"),
        Global.newObject());
    sb = new StringBuilder();
    sb.append(
        "xdc$tools$ResourceBundle$$construct = function( __obj, pkgName, lang, __params ) {\n");
    sb.append("var __mod = xdc.om['xdc.tools.ResourceBundle'];\n");
    sb.append("var __inst = __obj;\n");
    sb.append("__inst.$$bind('$args', {pkgName:pkgName, lang:lang});\n");
    sb.append("__inst.$$bind('$module', __mod);\n");
    sb.append("__mod.$objects.$add(__inst);\n");
    sb.append("for (var __p in __params) __inst[__p] = __params[__p];\n");
    sb.append("__inst.$$bless();\n");
    sb.append("return null;\n");
    sb.append("}\n");
    Global.eval(sb.toString());
  }

  void ICmd$$CREATES() {
    Proto.Fxn fxn;
    StringBuilder sb;
  }

  void IProductView$$CREATES() {
    Proto.Fxn fxn;
    StringBuilder sb;
  }

  void IRtscProductTemplate$$CREATES() {
    Proto.Fxn fxn;
    StringBuilder sb;
  }

  void Cmdr$$FUNCTIONS() {
    Proto.Fxn fxn;

    // fxn Cmdr.error
    fxn =
        (Proto.Fxn)
            om.bind(
                "xdc.tools.Cmdr$$error",
                new Proto.Fxn(
                    om.findStrict("xdc.tools.Cmdr.Instance", "xdc.tools"), null, 0, -1, false));
    // fxn Cmdr.getopts
    fxn =
        (Proto.Fxn)
            om.bind(
                "xdc.tools.Cmdr$$getopts",
                new Proto.Fxn(
                    om.findStrict("xdc.tools.Cmdr.Instance", "xdc.tools"), null, 0, -1, false));
    // fxn Cmdr.info
    fxn =
        (Proto.Fxn)
            om.bind(
                "xdc.tools.Cmdr$$info",
                new Proto.Fxn(
                    om.findStrict("xdc.tools.Cmdr.Instance", "xdc.tools"), null, 0, -1, false));
    // fxn Cmdr.read
    fxn =
        (Proto.Fxn)
            om.bind(
                "xdc.tools.Cmdr$$read",
                new Proto.Fxn(
                    om.findStrict("xdc.tools.Cmdr.Instance", "xdc.tools"), null, 0, -1, false));
    // fxn Cmdr.time
    fxn =
        (Proto.Fxn)
            om.bind(
                "xdc.tools.Cmdr$$time",
                new Proto.Fxn(
                    om.findStrict("xdc.tools.Cmdr.Instance", "xdc.tools"), null, 0, -1, false));
    // fxn Cmdr.usage
    fxn =
        (Proto.Fxn)
            om.bind(
                "xdc.tools.Cmdr$$usage",
                new Proto.Fxn(
                    om.findStrict("xdc.tools.Cmdr.Instance", "xdc.tools"), null, 0, -1, false));
    // fxn Cmdr.verbose
    fxn =
        (Proto.Fxn)
            om.bind(
                "xdc.tools.Cmdr$$verbose",
                new Proto.Fxn(
                    om.findStrict("xdc.tools.Cmdr.Instance", "xdc.tools"), null, 0, -1, false));
    // fxn Cmdr.warning
    fxn =
        (Proto.Fxn)
            om.bind(
                "xdc.tools.Cmdr$$warning",
                new Proto.Fxn(
                    om.findStrict("xdc.tools.Cmdr.Instance", "xdc.tools"), null, 0, -1, false));
    // fxn Cmdr.write
    fxn =
        (Proto.Fxn)
            om.bind(
                "xdc.tools.Cmdr$$write",
                new Proto.Fxn(
                    om.findStrict("xdc.tools.Cmdr.Instance", "xdc.tools"), null, 0, -1, false));
  }

  void ResourceBundle$$FUNCTIONS() {
    Proto.Fxn fxn;

    // fxn ResourceBundle.getResourceBundle
    fxn =
        (Proto.Fxn)
            om.bind(
                "xdc.tools.ResourceBundle$$getResourceBundle",
                new Proto.Fxn(
                    om.findStrict("xdc.tools.ResourceBundle.Module", "xdc.tools"),
                    (Proto) om.findStrict("xdc.tools.ResourceBundle.Instance", "xdc.tools"),
                    2,
                    2,
                    false));
    fxn.addArg(0, "pkgName", $$T_Str, $$UNDEF);
    fxn.addArg(1, "lang", $$T_Str, $$UNDEF);
    // fxn ResourceBundle.getString
    fxn =
        (Proto.Fxn)
            om.bind(
                "xdc.tools.ResourceBundle$$getString",
                new Proto.Fxn(
                    om.findStrict("xdc.tools.ResourceBundle.Instance", "xdc.tools"),
                    $$T_Str,
                    1,
                    1,
                    false));
    fxn.addArg(0, "key", $$T_Str, $$UNDEF);
    // fxn ResourceBundle.formatMessage
    fxn =
        (Proto.Fxn)
            om.bind(
                "xdc.tools.ResourceBundle$$formatMessage",
                new Proto.Fxn(
                    om.findStrict("xdc.tools.ResourceBundle.Instance", "xdc.tools"),
                    $$T_Str,
                    2,
                    2,
                    false));
    fxn.addArg(0, "key", $$T_Str, $$UNDEF);
    fxn.addArg(1, "args", $$T_Obj, $$UNDEF);
  }

  void ICmd$$FUNCTIONS() {
    Proto.Fxn fxn;

    // fxn ICmd.main
    fxn =
        (Proto.Fxn)
            om.bind(
                "xdc.tools.ICmd$$main",
                new Proto.Fxn(
                    om.findStrict("xdc.tools.ICmd.Module", "xdc.tools"), null, 0, -1, false));
    // fxn ICmd.exec
    fxn =
        (Proto.Fxn)
            om.bind(
                "xdc.tools.ICmd$$exec",
                new Proto.Fxn(
                    om.findStrict("xdc.tools.ICmd.Module", "xdc.tools"), null, 0, -1, false));
    // fxn ICmd.run
    fxn =
        (Proto.Fxn)
            om.bind(
                "xdc.tools.ICmd$$run",
                new Proto.Fxn(
                    om.findStrict("xdc.tools.ICmd.Instance", "xdc.tools"), $$T_Obj, 2, 2, false));
    fxn.addArg(0, "cmdr", (Proto) om.findStrict("xdc.tools.Cmdr.Instance", "xdc.tools"), $$UNDEF);
    fxn.addArg(1, "args", new Proto.Arr($$T_Str, false), $$DEFAULT);
  }

  void IProductView$$FUNCTIONS() {
    Proto.Fxn fxn;

    // fxn IProductView.getProductDescriptor
    fxn =
        (Proto.Fxn)
            om.bind(
                "xdc.tools.IProductView$$getProductDescriptor",
                new Proto.Fxn(
                    om.findStrict("xdc.tools.IProductView.Module", "xdc.tools"),
                    (Proto) om.findStrict("xdc.tools.IProductView.ProductElemDesc", "xdc.tools"),
                    0,
                    0,
                    false));
  }

  void IRtscProductTemplate$$FUNCTIONS() {
    Proto.Fxn fxn;
  }

  void Cmdr$$SIZES() {}

  void ResourceBundle$$SIZES() {}

  void ICmd$$SIZES() {}

  void IProductView$$SIZES() {}

  void IRtscProductTemplate$$SIZES() {}

  void Cmdr$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "xdc/tools/Cmdr.xs");
    om.bind("xdc.tools.Cmdr$$capsule", cap);
    po = (Proto.Obj) om.findStrict("xdc.tools.Cmdr.Module", "xdc.tools");
    po.init("xdc.tools.Cmdr.Module", $$Module);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFxn(
        "create",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$create", "xdc.tools"),
        Global.get("xdc$tools$Cmdr$$create"));
    po.addFxn(
        "construct",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$construct", "xdc.tools"),
        Global.get("xdc$tools$Cmdr$$construct"));
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("xdc.tools.Cmdr$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("xdc.tools.Cmdr$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "instance$meta$init");
    if (fxn != null) om.bind("xdc.tools.Cmdr$$instance$meta$init", true);
    if (fxn != null) po.addFxn("instance$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("xdc.tools.Cmdr$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    po = (Proto.Obj) om.findStrict("xdc.tools.Cmdr.Instance", "xdc.tools");
    po.init("xdc.tools.Cmdr.Instance", $$Instance);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "context",
        (Proto) om.findStrict("xdc.tools.Cmdr.Context", "xdc.tools"),
        om.find("xdc.tools.Cmdr.SHELL"),
        "wh");
    po.addFld("tid", Proto.Elm.newCNum("(xdc_Int)"), 0L, "wh");
    po.addFld("socket", $$T_Obj, null, "wh");
    po.addFxn(
        "error",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$error", "xdc.tools"),
        Global.get(cap, "error"));
    po.addFxn(
        "getopts",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$getopts", "xdc.tools"),
        Global.get(cap, "getopts"));
    po.addFxn(
        "info",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$info", "xdc.tools"),
        Global.get(cap, "info"));
    po.addFxn(
        "read",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$read", "xdc.tools"),
        Global.get(cap, "read"));
    po.addFxn(
        "time",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$time", "xdc.tools"),
        Global.get(cap, "time"));
    po.addFxn(
        "usage",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$usage", "xdc.tools"),
        Global.get(cap, "usage"));
    po.addFxn(
        "verbose",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$verbose", "xdc.tools"),
        Global.get(cap, "verbose"));
    po.addFxn(
        "warning",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$warning", "xdc.tools"),
        Global.get(cap, "warning"));
    po.addFxn(
        "write",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$write", "xdc.tools"),
        Global.get(cap, "write"));
    po = (Proto.Obj) om.findStrict("xdc.tools.Cmdr$$Params", "xdc.tools");
    po.init("xdc.tools.Cmdr.Params", $$Params);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "context",
        (Proto) om.findStrict("xdc.tools.Cmdr.Context", "xdc.tools"),
        om.find("xdc.tools.Cmdr.SHELL"),
        "wh");
    po.addFld("tid", Proto.Elm.newCNum("(xdc_Int)"), 0L, "wh");
    po.addFld("socket", $$T_Obj, null, "wh");
    po = (Proto.Obj) om.findStrict("xdc.tools.Cmdr$$Object", "xdc.tools");
    po.init("xdc.tools.Cmdr.Object", om.findStrict("xdc.tools.Cmdr.Instance", "xdc.tools"));
    po.addFxn(
        "error",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$error", "xdc.tools"),
        Global.get(cap, "error"));
    po.addFxn(
        "getopts",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$getopts", "xdc.tools"),
        Global.get(cap, "getopts"));
    po.addFxn(
        "info",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$info", "xdc.tools"),
        Global.get(cap, "info"));
    po.addFxn(
        "read",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$read", "xdc.tools"),
        Global.get(cap, "read"));
    po.addFxn(
        "time",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$time", "xdc.tools"),
        Global.get(cap, "time"));
    po.addFxn(
        "usage",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$usage", "xdc.tools"),
        Global.get(cap, "usage"));
    po.addFxn(
        "verbose",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$verbose", "xdc.tools"),
        Global.get(cap, "verbose"));
    po.addFxn(
        "warning",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$warning", "xdc.tools"),
        Global.get(cap, "warning"));
    po.addFxn(
        "write",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$write", "xdc.tools"),
        Global.get(cap, "write"));
  }

  void ResourceBundle$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "xdc/tools/ResourceBundle.xs");
    om.bind("xdc.tools.ResourceBundle$$capsule", cap);
    po = (Proto.Obj) om.findStrict("xdc.tools.ResourceBundle.Module", "xdc.tools");
    po.init("xdc.tools.ResourceBundle.Module", $$Module);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFxn(
        "create",
        (Proto.Fxn) om.findStrict("xdc.tools.ResourceBundle$$create", "xdc.tools"),
        Global.get("xdc$tools$ResourceBundle$$create"));
    po.addFxn(
        "construct",
        (Proto.Fxn) om.findStrict("xdc.tools.ResourceBundle$$construct", "xdc.tools"),
        Global.get("xdc$tools$ResourceBundle$$construct"));
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("xdc.tools.ResourceBundle$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("xdc.tools.ResourceBundle$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "instance$meta$init");
    if (fxn != null) om.bind("xdc.tools.ResourceBundle$$instance$meta$init", true);
    if (fxn != null) po.addFxn("instance$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("xdc.tools.ResourceBundle$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    po.addFxn(
        "getResourceBundle",
        (Proto.Fxn) om.findStrict("xdc.tools.ResourceBundle$$getResourceBundle", "xdc.tools"),
        Global.get(cap, "getResourceBundle"));
    po = (Proto.Obj) om.findStrict("xdc.tools.ResourceBundle.Instance", "xdc.tools");
    po.init("xdc.tools.ResourceBundle.Instance", $$Instance);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFxn(
        "getString",
        (Proto.Fxn) om.findStrict("xdc.tools.ResourceBundle$$getString", "xdc.tools"),
        Global.get(cap, "getString"));
    po.addFxn(
        "formatMessage",
        (Proto.Fxn) om.findStrict("xdc.tools.ResourceBundle$$formatMessage", "xdc.tools"),
        Global.get(cap, "formatMessage"));
    po = (Proto.Obj) om.findStrict("xdc.tools.ResourceBundle$$Params", "xdc.tools");
    po.init("xdc.tools.ResourceBundle.Params", $$Params);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po = (Proto.Obj) om.findStrict("xdc.tools.ResourceBundle$$Object", "xdc.tools");
    po.init(
        "xdc.tools.ResourceBundle.Object",
        om.findStrict("xdc.tools.ResourceBundle.Instance", "xdc.tools"));
    po.addFxn(
        "getString",
        (Proto.Fxn) om.findStrict("xdc.tools.ResourceBundle$$getString", "xdc.tools"),
        Global.get(cap, "getString"));
    po.addFxn(
        "formatMessage",
        (Proto.Fxn) om.findStrict("xdc.tools.ResourceBundle$$formatMessage", "xdc.tools"),
        Global.get(cap, "formatMessage"));
  }

  void ICmd$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "xdc/tools/ICmd.xs");
    om.bind("xdc.tools.ICmd$$capsule", cap);
    po = (Proto.Obj) om.findStrict("xdc.tools.ICmd.Module", "xdc.tools");
    po.init("xdc.tools.ICmd.Module", $$Module);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("usage", new Proto.Arr($$T_Str, false), Global.newArray(new Object[] {}), "wh");
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("xdc.tools.ICmd$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("xdc.tools.ICmd$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "instance$meta$init");
    if (fxn != null) om.bind("xdc.tools.ICmd$$instance$meta$init", true);
    if (fxn != null) po.addFxn("instance$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("xdc.tools.ICmd$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    fxn = Global.get(cap, "main");
    if (fxn != null)
      po.addFxn("main", (Proto.Fxn) om.findStrict("xdc.tools.ICmd$$main", "xdc.tools"), fxn);
    fxn = Global.get(cap, "exec");
    if (fxn != null)
      po.addFxn("exec", (Proto.Fxn) om.findStrict("xdc.tools.ICmd$$exec", "xdc.tools"), fxn);
    po = (Proto.Obj) om.findStrict("xdc.tools.ICmd.Instance", "xdc.tools");
    po.init("xdc.tools.ICmd.Instance", $$Instance);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    fxn = Global.get(cap, "run");
    if (fxn != null)
      po.addFxn("run", (Proto.Fxn) om.findStrict("xdc.tools.ICmd$$run", "xdc.tools"), fxn);
    po = (Proto.Obj) om.findStrict("xdc.tools.ICmd$$Params", "xdc.tools");
    po.init("xdc.tools.ICmd.Params", $$Params);
    po.addFld("$hostonly", $$T_Num, 1, "r");
  }

  void IProductView$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    po = (Proto.Obj) om.findStrict("xdc.tools.IProductView.Module", "xdc.tools");
    po.init("xdc.tools.IProductView.Module", $$Module);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    // struct IProductView.ProductElemDesc
    po = (Proto.Obj) om.findStrict("xdc.tools.IProductView$$ProductElemDesc", "xdc.tools");
    po.init("xdc.tools.IProductView.ProductElemDesc", null);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("elemName", $$T_Str, $$UNDEF, "w");
    po.addFld("moduleName", $$T_Str, $$UNDEF, "w");
    po.addFld("iconFileName", $$T_Str, $$UNDEF, "w");
    po.addFld(
        "elemArray",
        new Proto.Arr(
            (Proto) om.findStrict("xdc.tools.IProductView.ProductElemDesc", "xdc.tools"), false),
        $$DEFAULT,
        "w");
  }

  void IRtscProductTemplate$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    po = (Proto.Obj) om.findStrict("xdc.tools.IRtscProductTemplate.Module", "xdc.tools");
    po.init("xdc.tools.IRtscProductTemplate.Module", $$Module);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "appTemplates",
        new Proto.Arr(
            (Proto) om.findStrict("xdc.tools.IRtscProductTemplate.TemplateInfo", "xdc.tools"),
            false),
        $$DEFAULT,
        "wh");
    po.addFld(
        "configTemplates",
        new Proto.Arr(
            (Proto) om.findStrict("xdc.tools.IRtscProductTemplate.TemplateInfo", "xdc.tools"),
            false),
        $$DEFAULT,
        "wh");
    // struct IRtscProductTemplate.TemplateInfo
    po = (Proto.Obj) om.findStrict("xdc.tools.IRtscProductTemplate$$TemplateInfo", "xdc.tools");
    po.init("xdc.tools.IRtscProductTemplate.TemplateInfo", null);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("title", $$T_Str, $$UNDEF, "w");
    po.addFld("fileList", new Proto.Arr($$T_Str, false), $$DEFAULT, "w");
    po.addFld("description", $$T_Str, $$UNDEF, "w");
    po.addFld(
        "template",
        new Proto.Arr(
            (Proto) om.findStrict("xdc.tools.IRtscProductTemplate.TemplateInfo", "xdc.tools"),
            false),
        $$DEFAULT,
        "w");
  }

  void Cmdr$$ROV() {}

  void ResourceBundle$$ROV() {}

  void ICmd$$ROV() {}

  void IProductView$$ROV() {}

  void IRtscProductTemplate$$ROV() {}

  void $$SINGLETONS() {
    pkgP.init("xdc.tools.Package", (Proto.Obj) om.findStrict("xdc.IPackage.Module", "xdc.tools"));
    pkgP.bind("$capsule", $$UNDEF);
    pkgV.init2(pkgP, "xdc.tools", Value.DEFAULT, false);
    pkgV.bind("$name", "xdc.tools");
    pkgV.bind("$category", "Package");
    pkgV.bind("$$qn", "xdc.tools.");
    pkgV.bind("$vers", Global.newArray("1, 0, 0, 0"));
    Value.Map atmap = (Value.Map) pkgV.getv("$attr");
    atmap.seal("length");
    imports.clear();
    pkgV.bind("$imports", imports);
    StringBuilder sb = new StringBuilder();
    sb.append("var pkg = xdc.om['xdc.tools'];\n");
    sb.append("if (pkg.$vers.length >= 3) {\n");
    sb.append("pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..'));\n");
    sb.append("}\n");
    sb.append("pkg.build.libraries = [\n");
    sb.append("];\n");
    sb.append("pkg.build.libDesc = [\n");
    sb.append("];\n");
    Global.eval(sb.toString());
  }

  void Cmdr$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo = (Value.Obj) om.findStrict("xdc.tools.Cmdr", "xdc.tools");
    po = (Proto.Obj) om.findStrict("xdc.tools.Cmdr.Module", "xdc.tools");
    vo.init2(po, "xdc.tools.Cmdr", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Module");
    vo.bind("$capsule", om.findStrict("xdc.tools.Cmdr$$capsule", "xdc.tools"));
    vo.bind("Instance", om.findStrict("xdc.tools.Cmdr.Instance", "xdc.tools"));
    vo.bind("Params", om.findStrict("xdc.tools.Cmdr.Params", "xdc.tools"));
    vo.bind(
        "PARAMS", ((Proto.Str) om.findStrict("xdc.tools.Cmdr.Params", "xdc.tools")).newInstance());
    vo.bind("$package", om.findStrict("xdc.tools", "xdc.tools"));
    tdefs.clear();
    proxies.clear();
    mcfgs.clear();
    icfgs.clear();
    inherits.clear();
    vo.bind("Context", om.findStrict("xdc.tools.Cmdr.Context", "xdc.tools"));
    vo.bind("SHELL", om.findStrict("xdc.tools.Cmdr.SHELL", "xdc.tools"));
    vo.bind("SCRIPT", om.findStrict("xdc.tools.Cmdr.SCRIPT", "xdc.tools"));
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray()));
    vo.bind("$$icfgs", Global.newArray(icfgs.toArray()));
    vo.bind("$$inherits", Global.newArray(inherits.toArray()));
    ((Value.Arr) pkgV.getv("$modules")).add(vo);
    ((Value.Arr) om.findStrict("$modules", "xdc.tools")).add(vo);
    vo.bind("$$instflag", 1);
    vo.bind("$$iobjflag", 1);
    vo.bind("$$sizeflag", 1);
    vo.bind("$$dlgflag", 0);
    vo.bind("$$iflag", 0);
    vo.bind("$$romcfgs", "|");
    vo.bind("$$nortsflag", 0);
    Proto.Str ps = (Proto.Str) vo.find("Module_State");
    if (ps != null) vo.bind("$object", ps.newInstance());
    vo.bind("$$meta_iobj", om.has("xdc.tools.Cmdr$$instance$static$init", null) ? 1 : 0);
    vo.bind("$$fxntab", Global.newArray());
    vo.bind("$$logEvtCfgs", Global.newArray());
    vo.bind("$$errorDescCfgs", Global.newArray());
    vo.bind("$$assertDescCfgs", Global.newArray());
    Value.Map atmap = (Value.Map) vo.getv("$attr");
    atmap.seal("length");
    vo.bind("Object", om.findStrict("xdc.tools.Cmdr.Object", "xdc.tools"));
    pkgV.bind("Cmdr", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("Cmdr");
  }

  void ResourceBundle$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo = (Value.Obj) om.findStrict("xdc.tools.ResourceBundle", "xdc.tools");
    po = (Proto.Obj) om.findStrict("xdc.tools.ResourceBundle.Module", "xdc.tools");
    vo.init2(po, "xdc.tools.ResourceBundle", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Module");
    vo.bind("$capsule", om.findStrict("xdc.tools.ResourceBundle$$capsule", "xdc.tools"));
    vo.bind("Instance", om.findStrict("xdc.tools.ResourceBundle.Instance", "xdc.tools"));
    vo.bind("Params", om.findStrict("xdc.tools.ResourceBundle.Params", "xdc.tools"));
    vo.bind(
        "PARAMS",
        ((Proto.Str) om.findStrict("xdc.tools.ResourceBundle.Params", "xdc.tools")).newInstance());
    vo.bind("$package", om.findStrict("xdc.tools", "xdc.tools"));
    tdefs.clear();
    proxies.clear();
    mcfgs.clear();
    icfgs.clear();
    inherits.clear();
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray()));
    vo.bind("$$icfgs", Global.newArray(icfgs.toArray()));
    vo.bind("$$inherits", Global.newArray(inherits.toArray()));
    ((Value.Arr) pkgV.getv("$modules")).add(vo);
    ((Value.Arr) om.findStrict("$modules", "xdc.tools")).add(vo);
    vo.bind("$$instflag", 1);
    vo.bind("$$iobjflag", 1);
    vo.bind("$$sizeflag", 1);
    vo.bind("$$dlgflag", 0);
    vo.bind("$$iflag", 0);
    vo.bind("$$romcfgs", "|");
    vo.bind("$$nortsflag", 0);
    Proto.Str ps = (Proto.Str) vo.find("Module_State");
    if (ps != null) vo.bind("$object", ps.newInstance());
    vo.bind("$$meta_iobj", om.has("xdc.tools.ResourceBundle$$instance$static$init", null) ? 1 : 0);
    vo.bind("$$fxntab", Global.newArray());
    vo.bind("$$logEvtCfgs", Global.newArray());
    vo.bind("$$errorDescCfgs", Global.newArray());
    vo.bind("$$assertDescCfgs", Global.newArray());
    Value.Map atmap = (Value.Map) vo.getv("$attr");
    atmap.seal("length");
    vo.bind("Object", om.findStrict("xdc.tools.ResourceBundle.Object", "xdc.tools"));
    pkgV.bind("ResourceBundle", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("ResourceBundle");
  }

  void ICmd$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo = (Value.Obj) om.findStrict("xdc.tools.ICmd", "xdc.tools");
    po = (Proto.Obj) om.findStrict("xdc.tools.ICmd.Module", "xdc.tools");
    vo.init2(po, "xdc.tools.ICmd", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Interface");
    vo.bind("$capsule", om.findStrict("xdc.tools.ICmd$$capsule", "xdc.tools"));
    vo.bind("Instance", om.findStrict("xdc.tools.ICmd.Instance", "xdc.tools"));
    vo.bind("Params", om.findStrict("xdc.tools.ICmd.Params", "xdc.tools"));
    vo.bind(
        "PARAMS", ((Proto.Str) om.findStrict("xdc.tools.ICmd.Params", "xdc.tools")).newInstance());
    vo.bind("$package", om.findStrict("xdc.tools", "xdc.tools"));
    tdefs.clear();
    proxies.clear();
    inherits.clear();
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    vo.bind("$$inherits", Global.newArray(inherits.toArray()));
    ((Value.Arr) pkgV.getv("$interfaces")).add(vo);
    pkgV.bind("ICmd", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("ICmd");
    vo.seal(null);
  }

  void IProductView$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo = (Value.Obj) om.findStrict("xdc.tools.IProductView", "xdc.tools");
    po = (Proto.Obj) om.findStrict("xdc.tools.IProductView.Module", "xdc.tools");
    vo.init2(po, "xdc.tools.IProductView", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Interface");
    vo.bind("$capsule", $$UNDEF);
    vo.bind("$package", om.findStrict("xdc.tools", "xdc.tools"));
    tdefs.clear();
    proxies.clear();
    inherits.clear();
    vo.bind(
        "ProductElemDesc", om.findStrict("xdc.tools.IProductView.ProductElemDesc", "xdc.tools"));
    tdefs.add(om.findStrict("xdc.tools.IProductView.ProductElemDesc", "xdc.tools"));
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    vo.bind("$$inherits", Global.newArray(inherits.toArray()));
    ((Value.Arr) pkgV.getv("$interfaces")).add(vo);
    pkgV.bind("IProductView", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("IProductView");
    vo.seal(null);
  }

  void IRtscProductTemplate$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo = (Value.Obj) om.findStrict("xdc.tools.IRtscProductTemplate", "xdc.tools");
    po = (Proto.Obj) om.findStrict("xdc.tools.IRtscProductTemplate.Module", "xdc.tools");
    vo.init2(po, "xdc.tools.IRtscProductTemplate", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Interface");
    vo.bind("$capsule", $$UNDEF);
    vo.bind("$package", om.findStrict("xdc.tools", "xdc.tools"));
    tdefs.clear();
    proxies.clear();
    inherits.clear();
    vo.bind(
        "TemplateInfo", om.findStrict("xdc.tools.IRtscProductTemplate.TemplateInfo", "xdc.tools"));
    tdefs.add(om.findStrict("xdc.tools.IRtscProductTemplate.TemplateInfo", "xdc.tools"));
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    vo.bind("$$inherits", Global.newArray(inherits.toArray()));
    ((Value.Arr) pkgV.getv("$interfaces")).add(vo);
    pkgV.bind("IRtscProductTemplate", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("IRtscProductTemplate");
    vo.seal(null);
  }

  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn("module$meta$init", (Scriptable) om.findStrict("xdc.tools.Cmdr", "xdc.tools"));
    Global.callFxn(
        "module$meta$init", (Scriptable) om.findStrict("xdc.tools.ResourceBundle", "xdc.tools"));
    Global.callFxn("init", pkgV);
    ((Value.Obj) om.getv("xdc.tools.Cmdr")).bless();
    ((Value.Obj) om.getv("xdc.tools.ResourceBundle")).bless();
    ((Value.Obj) om.getv("xdc.tools.ICmd")).bless();
    ((Value.Obj) om.getv("xdc.tools.IProductView")).bless();
    ((Value.Obj) om.getv("xdc.tools.IRtscProductTemplate")).bless();
    ((Value.Arr) om.findStrict("$packages", "xdc.tools")).add(pkgV);
  }

  public void exec(Scriptable xdcO, Session ses) {
    this.xdcO = xdcO;
    this.ses = ses;
    om = (Value.Obj) xdcO.get("om", null);

    Object o = om.geto("$name");
    String s = o instanceof String ? (String) o : null;
    isCFG = s != null && s.equals("cfg");
    isROV = s != null && s.equals("rov");

    $$IMPORTS();
    $$OBJECTS();
    Cmdr$$OBJECTS();
    ResourceBundle$$OBJECTS();
    ICmd$$OBJECTS();
    IProductView$$OBJECTS();
    IRtscProductTemplate$$OBJECTS();
    Cmdr$$CONSTS();
    ResourceBundle$$CONSTS();
    ICmd$$CONSTS();
    IProductView$$CONSTS();
    IRtscProductTemplate$$CONSTS();
    Cmdr$$CREATES();
    ResourceBundle$$CREATES();
    ICmd$$CREATES();
    IProductView$$CREATES();
    IRtscProductTemplate$$CREATES();
    Cmdr$$FUNCTIONS();
    ResourceBundle$$FUNCTIONS();
    ICmd$$FUNCTIONS();
    IProductView$$FUNCTIONS();
    IRtscProductTemplate$$FUNCTIONS();
    Cmdr$$SIZES();
    ResourceBundle$$SIZES();
    ICmd$$SIZES();
    IProductView$$SIZES();
    IRtscProductTemplate$$SIZES();
    Cmdr$$TYPES();
    ResourceBundle$$TYPES();
    ICmd$$TYPES();
    IProductView$$TYPES();
    IRtscProductTemplate$$TYPES();
    if (isROV) {
      Cmdr$$ROV();
      ResourceBundle$$ROV();
      ICmd$$ROV();
      IProductView$$ROV();
      IRtscProductTemplate$$ROV();
    } // isROV
    $$SINGLETONS();
    Cmdr$$SINGLETONS();
    ResourceBundle$$SINGLETONS();
    ICmd$$SINGLETONS();
    IProductView$$SINGLETONS();
    IRtscProductTemplate$$SINGLETONS();
    $$INITIALIZATION();
  }
}
public class google_targets_arm {
  static final String VERS = "@(#) xdc-y23\n";

  static final Proto.Elm $$T_Bool = Proto.Elm.newBool();
  static final Proto.Elm $$T_Num = Proto.Elm.newNum();
  static final Proto.Elm $$T_Str = Proto.Elm.newStr();
  static final Proto.Elm $$T_Obj = Proto.Elm.newObj();

  static final Proto.Fxn $$T_Met = new Proto.Fxn(null, null, 0, -1, false);
  static final Proto.Map $$T_Map = new Proto.Map($$T_Obj);
  static final Proto.Arr $$T_Vec = new Proto.Arr($$T_Obj);

  static final XScriptO $$DEFAULT = Value.DEFAULT;
  static final Object $$UNDEF = Undefined.instance;

  static final Proto.Obj $$Package = (Proto.Obj) Global.get("$$Package");
  static final Proto.Obj $$Module = (Proto.Obj) Global.get("$$Module");
  static final Proto.Obj $$Instance = (Proto.Obj) Global.get("$$Instance");
  static final Proto.Obj $$Params = (Proto.Obj) Global.get("$$Params");

  static final Object $$objFldGet = Global.get("$$objFldGet");
  static final Object $$objFldSet = Global.get("$$objFldSet");
  static final Object $$proxyGet = Global.get("$$proxyGet");
  static final Object $$proxySet = Global.get("$$proxySet");
  static final Object $$delegGet = Global.get("$$delegGet");
  static final Object $$delegSet = Global.get("$$delegSet");

  Scriptable xdcO;
  Session ses;
  Value.Obj om;

  boolean isROV;
  boolean isCFG;

  Proto.Obj pkgP;
  Value.Obj pkgV;

  ArrayList<Object> imports = new ArrayList<Object>();
  ArrayList<Object> loggables = new ArrayList<Object>();
  ArrayList<Object> mcfgs = new ArrayList<Object>();
  ArrayList<Object> icfgs = new ArrayList<Object>();
  ArrayList<String> inherits = new ArrayList<String>();
  ArrayList<Object> proxies = new ArrayList<Object>();
  ArrayList<Object> sizes = new ArrayList<Object>();
  ArrayList<Object> tdefs = new ArrayList<Object>();

  void $$IMPORTS() {
    Global.callFxn("loadPackage", xdcO, "xdc.bld");
    Global.callFxn("loadPackage", xdcO, "gnu.targets");
    Global.callFxn("loadPackage", xdcO, "xdc");
    Global.callFxn("loadPackage", xdcO, "xdc.corevers");
    Global.callFxn("loadPackage", xdcO, "google.targets");
  }

  void $$OBJECTS() {
    pkgP = (Proto.Obj) om.bind("google.targets.arm.Package", new Proto.Obj());
    pkgV = (Value.Obj) om.bind("google.targets.arm", new Value.Obj("google.targets.arm", pkgP));
  }

  void Bionic$$OBJECTS() {
    Proto.Obj po, spo;
    Value.Obj vo;

    po = (Proto.Obj) om.bind("google.targets.arm.Bionic.Module", new Proto.Obj());
    vo =
        (Value.Obj)
            om.bind("google.targets.arm.Bionic", new Value.Obj("google.targets.arm.Bionic", po));
    pkgV.bind("Bionic", vo);
    // decls
    om.bind(
        "google.targets.arm.Bionic.Model",
        om.findStrict("xdc.bld.ITarget.Model", "google.targets.arm"));
    om.bind(
        "google.targets.arm.Bionic.DebugGen",
        om.findStrict("xdc.bld.ITarget.DebugGen", "google.targets.arm"));
    om.bind(
        "google.targets.arm.Bionic.Extension",
        om.findStrict("xdc.bld.ITarget.Extension", "google.targets.arm"));
    om.bind(
        "google.targets.arm.Bionic.CompileOptions",
        om.findStrict("xdc.bld.ITarget.CompileOptions", "google.targets.arm"));
    om.bind(
        "google.targets.arm.Bionic.OptionSet",
        om.findStrict("xdc.bld.ITarget.OptionSet", "google.targets.arm"));
    om.bind(
        "google.targets.arm.Bionic.CompileGoal",
        om.findStrict("xdc.bld.ITarget.CompileGoal", "google.targets.arm"));
    om.bind(
        "google.targets.arm.Bionic.LinkGoal",
        om.findStrict("xdc.bld.ITarget.LinkGoal", "google.targets.arm"));
    om.bind(
        "google.targets.arm.Bionic.ArchiveGoal",
        om.findStrict("xdc.bld.ITarget.ArchiveGoal", "google.targets.arm"));
    om.bind(
        "google.targets.arm.Bionic.CommandSet",
        om.findStrict("xdc.bld.ITarget.CommandSet", "google.targets.arm"));
    om.bind(
        "google.targets.arm.Bionic.TypeInfo",
        om.findStrict("xdc.bld.ITarget.TypeInfo", "google.targets.arm"));
    om.bind(
        "google.targets.arm.Bionic.StdTypes",
        om.findStrict("xdc.bld.ITarget.StdTypes", "google.targets.arm"));
    om.bind(
        "google.targets.arm.Bionic.Command",
        om.findStrict("xdc.bld.ITarget2.Command", "google.targets.arm"));
    om.bind(
        "google.targets.arm.Bionic.Options",
        om.findStrict("xdc.bld.ITarget2.Options", "google.targets.arm"));
  }

  void Bionic$$CONSTS() {
    // module Bionic
  }

  void Bionic$$CREATES() {
    Proto.Fxn fxn;
    StringBuilder sb;
  }

  void Bionic$$FUNCTIONS() {
    Proto.Fxn fxn;
  }

  void Bionic$$SIZES() {}

  void Bionic$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "google/targets/arm/Bionic.xs");
    om.bind("google.targets.arm.Bionic$$capsule", cap);
    po = (Proto.Obj) om.findStrict("google.targets.arm.Bionic.Module", "google.targets.arm");
    po.init(
        "google.targets.arm.Bionic.Module",
        om.findStrict("google.targets.ITarget.Module", "google.targets.arm"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("name", $$T_Str, "Bionic", "rh");
    po.addFld("os", $$T_Str, "Linux", "rh");
    po.addFld("suffix", $$T_Str, "bnc", "rh");
    po.addFld("isa", $$T_Str, "v5T", "rh");
    po.addFld(
        "model",
        (Proto) om.findStrict("xdc.bld.ITarget.Model", "google.targets.arm"),
        Global.newObject("endian", "little"),
        "rh");
    po.addFld("rts", $$T_Str, "google.targets.arm.rts", "rh");
    po.addFld("platform", $$T_Str, "host.platforms.arm", "wh");
    po.addFld("LONGNAME", $$T_Str, $$UNDEF, "wh");
    po.addFld("libcDir", $$T_Str, $$UNDEF, "wh");
    po.addFld("fsDir", $$T_Str, $$UNDEF, "wh");
    po.addFld("stdInclude", $$T_Str, "google/targets/arm/std.h", "rh");
    po.addFld(
        "cc",
        (Proto) om.findStrict("xdc.bld.ITarget2.Command", "google.targets.arm"),
        Global.newObject(
            "cmd",
            "$(rootDir)/$(LONGNAME) -c -MD -MF [email protected]",
            "opts",
            "-march=armv5t -fno-short-enums "),
        "rh");
    po.addFld(
        "ccOpts",
        (Proto) om.findStrict("xdc.bld.ITarget2.Options", "google.targets.arm"),
        Global.newObject("prefix", "-fPIC -Wunused", "suffix", "-Dfar=  -D_ANDROID_"),
        "wh");
    po.addFld(
        "asm",
        (Proto) om.findStrict("xdc.bld.ITarget2.Command", "google.targets.arm"),
        Global.newObject("cmd", "$(rootDir)/$(LONGNAME) -c -x assembler", "opts", "-march=armv5t"),
        "rh");
    po.addFld(
        "lnkOpts",
        (Proto) om.findStrict("xdc.bld.ITarget2.Options", "google.targets.arm"),
        Global.newObject("prefix", "", "suffix", "-Wl,-Map=$(XDCCFGDIR)/[email protected] "),
        "wh");
    po.addFld(
        "stdTypes",
        (Proto) om.findStrict("xdc.bld.ITarget.StdTypes", "google.targets.arm"),
        Global.newObject(
            "t_IArg",
            Global.newObject("size", 4L, "align", 4L),
            "t_Char",
            Global.newObject("size", 1L, "align", 1L),
            "t_Double",
            Global.newObject("size", 8L, "align", 4L),
            "t_Float",
            Global.newObject("size", 4L, "align", 4L),
            "t_Fxn",
            Global.newObject("size", 4L, "align", 4L),
            "t_Int",
            Global.newObject("size", 4L, "align", 4L),
            "t_Int8",
            Global.newObject("size", 1L, "align", 1L),
            "t_Int16",
            Global.newObject("size", 2L, "align", 2L),
            "t_Int32",
            Global.newObject("size", 4L, "align", 4L),
            "t_Int64",
            Global.newObject("size", 8L, "align", 4L),
            "t_Long",
            Global.newObject("size", 4L, "align", 4L),
            "t_LDouble",
            Global.newObject("size", 8L, "align", 4L),
            "t_LLong",
            Global.newObject("size", 8L, "align", 4L),
            "t_Ptr",
            Global.newObject("size", 4L, "align", 4L),
            "t_Short",
            Global.newObject("size", 2L, "align", 2L),
            "t_Size",
            Global.newObject("size", 4L, "align", 4L)),
        "rh");
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("google.targets.arm.Bionic$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("google.targets.arm.Bionic$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("google.targets.arm.Bionic$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    fxn = Global.get(cap, "archive");
    if (fxn != null)
      po.addFxn(
          "archive",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget$$archive", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "compile");
    if (fxn != null)
      po.addFxn(
          "compile",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget$$compile", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "scompile");
    if (fxn != null)
      po.addFxn(
          "scompile",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget$$scompile", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "link");
    if (fxn != null)
      po.addFxn(
          "link", (Proto.Fxn) om.findStrict("xdc.bld.ITarget$$link", "google.targets.arm"), fxn);
    fxn = Global.get(cap, "getVersion");
    if (fxn != null)
      po.addFxn(
          "getVersion",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget$$getVersion", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "getISAChain");
    if (fxn != null)
      po.addFxn(
          "getISAChain",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget$$getISAChain", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "findSuffix");
    if (fxn != null)
      po.addFxn(
          "findSuffix",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget$$findSuffix", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "selectSuffix");
    if (fxn != null)
      po.addFxn(
          "selectSuffix",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget$$selectSuffix", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "genConstCustom");
    if (fxn != null)
      po.addFxn(
          "genConstCustom",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget2$$genConstCustom", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "genVisibleData");
    if (fxn != null)
      po.addFxn(
          "genVisibleData",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget2$$genVisibleData", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "genVisibleFxns");
    if (fxn != null)
      po.addFxn(
          "genVisibleFxns",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget2$$genVisibleFxns", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "genVisibleLibFxns");
    if (fxn != null)
      po.addFxn(
          "genVisibleLibFxns",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget2$$genVisibleLibFxns", "google.targets.arm"),
          fxn);
  }

  void Bionic$$ROV() {}

  void $$SINGLETONS() {
    pkgP.init(
        "google.targets.arm.Package",
        (Proto.Obj) om.findStrict("xdc.IPackage.Module", "google.targets.arm"));
    pkgP.bind("$capsule", $$UNDEF);
    pkgV.init2(pkgP, "google.targets.arm", Value.DEFAULT, false);
    pkgV.bind("$name", "google.targets.arm");
    pkgV.bind("$category", "Package");
    pkgV.bind("$$qn", "google.targets.arm.");
    pkgV.bind("$vers", Global.newArray("1, 0, 0"));
    Value.Map atmap = (Value.Map) pkgV.getv("$attr");
    atmap.seal("length");
    imports.clear();
    imports.add(Global.newArray("xdc.bld", Global.newArray()));
    imports.add(Global.newArray("gnu.targets", Global.newArray()));
    pkgV.bind("$imports", imports);
    StringBuilder sb = new StringBuilder();
    sb.append("var pkg = xdc.om['google.targets.arm'];\n");
    sb.append("if (pkg.$vers.length >= 3) {\n");
    sb.append("pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..'));\n");
    sb.append("}\n");
    sb.append("pkg.build.libraries = [\n");
    sb.append("];\n");
    sb.append("pkg.build.libDesc = [\n");
    sb.append("];\n");
    Global.eval(sb.toString());
  }

  void Bionic$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo = (Value.Obj) om.findStrict("google.targets.arm.Bionic", "google.targets.arm");
    po = (Proto.Obj) om.findStrict("google.targets.arm.Bionic.Module", "google.targets.arm");
    vo.init2(po, "google.targets.arm.Bionic", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Module");
    vo.bind("$capsule", om.findStrict("google.targets.arm.Bionic$$capsule", "google.targets.arm"));
    vo.bind("$package", om.findStrict("google.targets.arm", "google.targets.arm"));
    tdefs.clear();
    proxies.clear();
    mcfgs.clear();
    icfgs.clear();
    inherits.clear();
    vo.bind("Model", om.findStrict("xdc.bld.ITarget.Model", "google.targets.arm"));
    tdefs.add(om.findStrict("xdc.bld.ITarget.Model", "google.targets.arm"));
    vo.bind("DebugGen", om.findStrict("xdc.bld.ITarget.DebugGen", "google.targets.arm"));
    tdefs.add(om.findStrict("xdc.bld.ITarget.DebugGen", "google.targets.arm"));
    vo.bind("Extension", om.findStrict("xdc.bld.ITarget.Extension", "google.targets.arm"));
    tdefs.add(om.findStrict("xdc.bld.ITarget.Extension", "google.targets.arm"));
    vo.bind(
        "CompileOptions", om.findStrict("xdc.bld.ITarget.CompileOptions", "google.targets.arm"));
    tdefs.add(om.findStrict("xdc.bld.ITarget.CompileOptions", "google.targets.arm"));
    vo.bind("OptionSet", om.findStrict("xdc.bld.ITarget.OptionSet", "google.targets.arm"));
    tdefs.add(om.findStrict("xdc.bld.ITarget.OptionSet", "google.targets.arm"));
    vo.bind("CompileGoal", om.findStrict("xdc.bld.ITarget.CompileGoal", "google.targets.arm"));
    tdefs.add(om.findStrict("xdc.bld.ITarget.CompileGoal", "google.targets.arm"));
    vo.bind("LinkGoal", om.findStrict("xdc.bld.ITarget.LinkGoal", "google.targets.arm"));
    tdefs.add(om.findStrict("xdc.bld.ITarget.LinkGoal", "google.targets.arm"));
    vo.bind("ArchiveGoal", om.findStrict("xdc.bld.ITarget.ArchiveGoal", "google.targets.arm"));
    tdefs.add(om.findStrict("xdc.bld.ITarget.ArchiveGoal", "google.targets.arm"));
    vo.bind("CommandSet", om.findStrict("xdc.bld.ITarget.CommandSet", "google.targets.arm"));
    tdefs.add(om.findStrict("xdc.bld.ITarget.CommandSet", "google.targets.arm"));
    vo.bind("StringArray", om.findStrict("xdc.bld.ITarget.StringArray", "google.targets.arm"));
    vo.bind("TypeInfo", om.findStrict("xdc.bld.ITarget.TypeInfo", "google.targets.arm"));
    tdefs.add(om.findStrict("xdc.bld.ITarget.TypeInfo", "google.targets.arm"));
    vo.bind("StdTypes", om.findStrict("xdc.bld.ITarget.StdTypes", "google.targets.arm"));
    tdefs.add(om.findStrict("xdc.bld.ITarget.StdTypes", "google.targets.arm"));
    vo.bind("Command", om.findStrict("xdc.bld.ITarget2.Command", "google.targets.arm"));
    tdefs.add(om.findStrict("xdc.bld.ITarget2.Command", "google.targets.arm"));
    vo.bind("Options", om.findStrict("xdc.bld.ITarget2.Options", "google.targets.arm"));
    tdefs.add(om.findStrict("xdc.bld.ITarget2.Options", "google.targets.arm"));
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray()));
    vo.bind("$$icfgs", Global.newArray(icfgs.toArray()));
    inherits.add("google.targets");
    inherits.add("xdc.bld");
    inherits.add("xdc.bld");
    vo.bind("$$inherits", Global.newArray(inherits.toArray()));
    ((Value.Arr) pkgV.getv("$modules")).add(vo);
    ((Value.Arr) om.findStrict("$modules", "google.targets.arm")).add(vo);
    vo.bind("$$instflag", 0);
    vo.bind("$$iobjflag", 1);
    vo.bind("$$sizeflag", 1);
    vo.bind("$$dlgflag", 0);
    vo.bind("$$iflag", 1);
    vo.bind("$$romcfgs", "|");
    vo.bind("$$nortsflag", 0);
    Proto.Str ps = (Proto.Str) vo.find("Module_State");
    if (ps != null) vo.bind("$object", ps.newInstance());
    vo.bind("$$meta_iobj", om.has("google.targets.arm.Bionic$$instance$static$init", null) ? 1 : 0);
    vo.bind("$$fxntab", Global.newArray());
    vo.bind("$$logEvtCfgs", Global.newArray());
    vo.bind("$$errorDescCfgs", Global.newArray());
    vo.bind("$$assertDescCfgs", Global.newArray());
    Value.Map atmap = (Value.Map) vo.getv("$attr");
    atmap.setElem("", "xdc/bld/stddefs.xdt");
    atmap.seal("length");
    pkgV.bind("Bionic", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("Bionic");
  }

  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn(
        "module$meta$init",
        (Scriptable) om.findStrict("google.targets.arm.Bionic", "google.targets.arm"));
    Global.callFxn("init", pkgV);
    ((Value.Obj) om.getv("google.targets.arm.Bionic")).bless();
    ((Value.Arr) om.findStrict("$packages", "google.targets.arm")).add(pkgV);
  }

  public void exec(Scriptable xdcO, Session ses) {
    this.xdcO = xdcO;
    this.ses = ses;
    om = (Value.Obj) xdcO.get("om", null);

    Object o = om.geto("$name");
    String s = o instanceof String ? (String) o : null;
    isCFG = s != null && s.equals("cfg");
    isROV = s != null && s.equals("rov");

    $$IMPORTS();
    $$OBJECTS();
    Bionic$$OBJECTS();
    Bionic$$CONSTS();
    Bionic$$CREATES();
    Bionic$$FUNCTIONS();
    Bionic$$SIZES();
    Bionic$$TYPES();
    if (isROV) {
      Bionic$$ROV();
    } // isROV
    $$SINGLETONS();
    Bionic$$SINGLETONS();
    $$INITIALIZATION();
  }
}
public class ti_sdo_ce_examples_codecs_g711 {
  static final String VERS = "@(#) xdc-u17\n";

  static final Proto.Elm $$T_Bool = Proto.Elm.newBool();
  static final Proto.Elm $$T_Num = Proto.Elm.newNum();
  static final Proto.Elm $$T_Str = Proto.Elm.newStr();
  static final Proto.Elm $$T_Obj = Proto.Elm.newObj();

  static final Proto.Fxn $$T_Met = new Proto.Fxn(null, null, 0, -1, false);
  static final Proto.Map $$T_Map = new Proto.Map($$T_Obj);
  static final Proto.Arr $$T_Vec = new Proto.Arr($$T_Obj);

  static final XScriptO $$DEFAULT = Value.DEFAULT;
  static final Object $$UNDEF = Undefined.instance;

  static final Proto.Obj $$Package = (Proto.Obj) Global.get("$$Package");
  static final Proto.Obj $$Module = (Proto.Obj) Global.get("$$Module");
  static final Proto.Obj $$Instance = (Proto.Obj) Global.get("$$Instance");
  static final Proto.Obj $$Params = (Proto.Obj) Global.get("$$Params");

  static final Object $$objFldGet = Global.get("$$objFldGet");
  static final Object $$objFldSet = Global.get("$$objFldSet");
  static final Object $$proxyGet = Global.get("$$proxyGet");
  static final Object $$proxySet = Global.get("$$proxySet");
  static final Object $$delegGet = Global.get("$$delegGet");
  static final Object $$delegSet = Global.get("$$delegSet");

  Scriptable xdcO;
  Session ses;
  Value.Obj om;

  boolean isROV;
  boolean isCFG;

  Proto.Obj pkgP;
  Value.Obj pkgV;

  ArrayList<Object> imports = new ArrayList<Object>();
  ArrayList<Object> loggables = new ArrayList<Object>();
  ArrayList<Object> mcfgs = new ArrayList<Object>();
  ArrayList<Object> proxies = new ArrayList<Object>();
  ArrayList<Object> sizes = new ArrayList<Object>();
  ArrayList<Object> tdefs = new ArrayList<Object>();

  void $$IMPORTS() {
    Global.callFxn("loadPackage", xdcO, "ti.xdais.dm.examples.g711");
    Global.callFxn("loadPackage", xdcO, "xdc");
    Global.callFxn("loadPackage", xdcO, "xdc.corevers");
    Global.callFxn("loadPackage", xdcO, "ti.sdo.ce.speech1");
  }

  void $$OBJECTS() {
    pkgP = (Proto.Obj) om.bind("ti.sdo.ce.examples.codecs.g711.Package", new Proto.Obj());
    pkgV =
        (Value.Obj)
            om.bind(
                "ti.sdo.ce.examples.codecs.g711",
                new Value.Obj("ti.sdo.ce.examples.codecs.g711", pkgP));
  }

  void G711ENC$$OBJECTS() {
    Proto.Obj po, spo;
    Value.Obj vo;

    po = (Proto.Obj) om.bind("ti.sdo.ce.examples.codecs.g711.G711ENC.Module", new Proto.Obj());
    vo =
        (Value.Obj)
            om.bind(
                "ti.sdo.ce.examples.codecs.g711.G711ENC",
                new Value.Obj("ti.sdo.ce.examples.codecs.g711.G711ENC", po));
    pkgV.bind("G711ENC", vo);
    // decls
  }

  void G711DEC$$OBJECTS() {
    Proto.Obj po, spo;
    Value.Obj vo;

    po = (Proto.Obj) om.bind("ti.sdo.ce.examples.codecs.g711.G711DEC.Module", new Proto.Obj());
    vo =
        (Value.Obj)
            om.bind(
                "ti.sdo.ce.examples.codecs.g711.G711DEC",
                new Value.Obj("ti.sdo.ce.examples.codecs.g711.G711DEC", po));
    pkgV.bind("G711DEC", vo);
    // decls
  }

  void G711ENC$$CONSTS() {
    // module G711ENC
  }

  void G711DEC$$CONSTS() {
    // module G711DEC
  }

  void G711ENC$$CREATES() {
    Proto.Fxn fxn;
    StringBuilder sb;
  }

  void G711DEC$$CREATES() {
    Proto.Fxn fxn;
    StringBuilder sb;
  }

  void G711ENC$$FUNCTIONS() {
    Proto.Fxn fxn;
  }

  void G711DEC$$FUNCTIONS() {
    Proto.Fxn fxn;
  }

  void G711ENC$$SIZES() {}

  void G711DEC$$SIZES() {}

  void G711ENC$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap =
        (Scriptable)
            Global.callFxn("loadCapsule", xdcO, "ti/sdo/ce/examples/codecs/g711/G711ENC.xs");
    om.bind("ti.sdo.ce.examples.codecs.g711.G711ENC$$capsule", cap);
    po =
        (Proto.Obj)
            om.findStrict(
                "ti.sdo.ce.examples.codecs.g711.G711ENC.Module", "ti.sdo.ce.examples.codecs.g711");
    po.init(
        "ti.sdo.ce.examples.codecs.g711.G711ENC.Module",
        om.findStrict("ti.sdo.ce.speech1.ISPHENC1.Module", "ti.sdo.ce.examples.codecs.g711"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("ialgFxns", $$T_Str, "G711ENC_SUN_IG711ENC", "rh");
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("ti.sdo.ce.examples.codecs.g711.G711ENC$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("ti.sdo.ce.examples.codecs.g711.G711ENC$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("ti.sdo.ce.examples.codecs.g711.G711ENC$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    fxn = Global.get(cap, "getCreationStackSize");
    if (fxn != null)
      po.addFxn(
          "getCreationStackSize",
          (Proto.Fxn)
              om.findStrict(
                  "ti.sdo.ce.ICodec$$getCreationStackSize", "ti.sdo.ce.examples.codecs.g711"),
          fxn);
    fxn = Global.get(cap, "getDaramScratchSize");
    if (fxn != null)
      po.addFxn(
          "getDaramScratchSize",
          (Proto.Fxn)
              om.findStrict(
                  "ti.sdo.ce.ICodec$$getDaramScratchSize", "ti.sdo.ce.examples.codecs.g711"),
          fxn);
    fxn = Global.get(cap, "getSaramScratchSize");
    if (fxn != null)
      po.addFxn(
          "getSaramScratchSize",
          (Proto.Fxn)
              om.findStrict(
                  "ti.sdo.ce.ICodec$$getSaramScratchSize", "ti.sdo.ce.examples.codecs.g711"),
          fxn);
    fxn = Global.get(cap, "getStackSize");
    if (fxn != null)
      po.addFxn(
          "getStackSize",
          (Proto.Fxn)
              om.findStrict("ti.sdo.ce.ICodec$$getStackSize", "ti.sdo.ce.examples.codecs.g711"),
          fxn);
    fxn = Global.get(cap, "getUUID");
    if (fxn != null)
      po.addFxn(
          "getUUID",
          (Proto.Fxn) om.findStrict("ti.sdo.ce.ICodec$$getUUID", "ti.sdo.ce.examples.codecs.g711"),
          fxn);
  }

  void G711DEC$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap =
        (Scriptable)
            Global.callFxn("loadCapsule", xdcO, "ti/sdo/ce/examples/codecs/g711/G711DEC.xs");
    om.bind("ti.sdo.ce.examples.codecs.g711.G711DEC$$capsule", cap);
    po =
        (Proto.Obj)
            om.findStrict(
                "ti.sdo.ce.examples.codecs.g711.G711DEC.Module", "ti.sdo.ce.examples.codecs.g711");
    po.init(
        "ti.sdo.ce.examples.codecs.g711.G711DEC.Module",
        om.findStrict("ti.sdo.ce.speech1.ISPHDEC1.Module", "ti.sdo.ce.examples.codecs.g711"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("ialgFxns", $$T_Str, "G711DEC_SUN_IG711DEC", "rh");
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("ti.sdo.ce.examples.codecs.g711.G711DEC$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("ti.sdo.ce.examples.codecs.g711.G711DEC$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("ti.sdo.ce.examples.codecs.g711.G711DEC$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    fxn = Global.get(cap, "getCreationStackSize");
    if (fxn != null)
      po.addFxn(
          "getCreationStackSize",
          (Proto.Fxn)
              om.findStrict(
                  "ti.sdo.ce.ICodec$$getCreationStackSize", "ti.sdo.ce.examples.codecs.g711"),
          fxn);
    fxn = Global.get(cap, "getDaramScratchSize");
    if (fxn != null)
      po.addFxn(
          "getDaramScratchSize",
          (Proto.Fxn)
              om.findStrict(
                  "ti.sdo.ce.ICodec$$getDaramScratchSize", "ti.sdo.ce.examples.codecs.g711"),
          fxn);
    fxn = Global.get(cap, "getSaramScratchSize");
    if (fxn != null)
      po.addFxn(
          "getSaramScratchSize",
          (Proto.Fxn)
              om.findStrict(
                  "ti.sdo.ce.ICodec$$getSaramScratchSize", "ti.sdo.ce.examples.codecs.g711"),
          fxn);
    fxn = Global.get(cap, "getStackSize");
    if (fxn != null)
      po.addFxn(
          "getStackSize",
          (Proto.Fxn)
              om.findStrict("ti.sdo.ce.ICodec$$getStackSize", "ti.sdo.ce.examples.codecs.g711"),
          fxn);
    fxn = Global.get(cap, "getUUID");
    if (fxn != null)
      po.addFxn(
          "getUUID",
          (Proto.Fxn) om.findStrict("ti.sdo.ce.ICodec$$getUUID", "ti.sdo.ce.examples.codecs.g711"),
          fxn);
  }

  void G711ENC$$ROV() {}

  void G711DEC$$ROV() {}

  void $$SINGLETONS() {
    pkgP.init(
        "ti.sdo.ce.examples.codecs.g711.Package",
        (Proto.Obj) om.findStrict("xdc.IPackage.Module", "ti.sdo.ce.examples.codecs.g711"));
    Scriptable cap =
        (Scriptable)
            Global.callFxn("loadCapsule", xdcO, "ti/sdo/ce/examples/codecs/g711/package.xs");
    om.bind("xdc.IPackage$$capsule", cap);
    Object fxn;
    fxn = Global.get(cap, "init");
    if (fxn != null)
      pkgP.addFxn(
          "init",
          (Proto.Fxn) om.findStrict("xdc.IPackage$$init", "ti.sdo.ce.examples.codecs.g711"),
          fxn);
    fxn = Global.get(cap, "close");
    if (fxn != null)
      pkgP.addFxn(
          "close",
          (Proto.Fxn) om.findStrict("xdc.IPackage$$close", "ti.sdo.ce.examples.codecs.g711"),
          fxn);
    fxn = Global.get(cap, "validate");
    if (fxn != null)
      pkgP.addFxn(
          "validate",
          (Proto.Fxn) om.findStrict("xdc.IPackage$$validate", "ti.sdo.ce.examples.codecs.g711"),
          fxn);
    fxn = Global.get(cap, "exit");
    if (fxn != null)
      pkgP.addFxn(
          "exit",
          (Proto.Fxn) om.findStrict("xdc.IPackage$$exit", "ti.sdo.ce.examples.codecs.g711"),
          fxn);
    fxn = Global.get(cap, "getLibs");
    if (fxn != null)
      pkgP.addFxn(
          "getLibs",
          (Proto.Fxn) om.findStrict("xdc.IPackage$$getLibs", "ti.sdo.ce.examples.codecs.g711"),
          fxn);
    fxn = Global.get(cap, "getSects");
    if (fxn != null)
      pkgP.addFxn(
          "getSects",
          (Proto.Fxn) om.findStrict("xdc.IPackage$$getSects", "ti.sdo.ce.examples.codecs.g711"),
          fxn);
    pkgP.bind("$capsule", cap);
    pkgV.init2(pkgP, "ti.sdo.ce.examples.codecs.g711", Value.DEFAULT, false);
    pkgV.bind("$name", "ti.sdo.ce.examples.codecs.g711");
    pkgV.bind("$category", "Package");
    pkgV.bind("$$qn", "ti.sdo.ce.examples.codecs.g711.");
    pkgV.bind("$vers", Global.newArray("1, 0, 0"));
    Value.Map atmap = (Value.Map) pkgV.getv("$attr");
    atmap.seal("length");
    imports.clear();
    imports.add(Global.newArray("ti.xdais.dm.examples.g711", Global.newArray()));
    pkgV.bind("$imports", imports);
    StringBuilder sb = new StringBuilder();
    sb.append("var pkg = xdc.om['ti.sdo.ce.examples.codecs.g711'];\n");
    sb.append("if (pkg.$vers.length >= 3) {\n");
    sb.append("pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..'));\n");
    sb.append("}\n");
    sb.append("pkg.build.libraries = [\n");
    sb.append("];\n");
    sb.append("pkg.build.libDesc = [\n");
    sb.append("];\n");
    sb.append("if('suffix' in xdc.om['xdc.IPackage$$LibDesc']) {\n");
    sb.append("}\n");
    Global.eval(sb.toString());
  }

  void G711ENC$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo =
        (Value.Obj)
            om.findStrict(
                "ti.sdo.ce.examples.codecs.g711.G711ENC", "ti.sdo.ce.examples.codecs.g711");
    po =
        (Proto.Obj)
            om.findStrict(
                "ti.sdo.ce.examples.codecs.g711.G711ENC.Module", "ti.sdo.ce.examples.codecs.g711");
    vo.init2(po, "ti.sdo.ce.examples.codecs.g711.G711ENC", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Module");
    vo.bind(
        "$capsule",
        om.findStrict(
            "ti.sdo.ce.examples.codecs.g711.G711ENC$$capsule", "ti.sdo.ce.examples.codecs.g711"));
    vo.bind(
        "$package",
        om.findStrict("ti.sdo.ce.examples.codecs.g711", "ti.sdo.ce.examples.codecs.g711"));
    tdefs.clear();
    proxies.clear();
    mcfgs.clear();
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray()));
    ((Value.Arr) pkgV.getv("$modules")).add(vo);
    ((Value.Arr) om.findStrict("$modules", "ti.sdo.ce.examples.codecs.g711")).add(vo);
    vo.bind("$$instflag", 0);
    vo.bind("$$iobjflag", 1);
    vo.bind("$$sizeflag", 1);
    vo.bind("$$dlgflag", 0);
    vo.bind("$$iflag", 1);
    vo.bind("$$romcfgs", "|");
    Proto.Str ps = (Proto.Str) vo.find("Module_State");
    if (ps != null) vo.bind("$object", ps.newInstance());
    vo.bind(
        "$$meta_iobj",
        om.has("ti.sdo.ce.examples.codecs.g711.G711ENC$$instance$static$init", null) ? 1 : 0);
    vo.bind("$$fxntab", Global.newArray());
    vo.bind("$$logEvtCfgs", Global.newArray());
    vo.bind("$$errorDescCfgs", Global.newArray());
    vo.bind("$$assertDescCfgs", Global.newArray());
    Value.Map atmap = (Value.Map) vo.getv("$attr");
    atmap.seal("length");
    pkgV.bind("G711ENC", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("G711ENC");
  }

  void G711DEC$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo =
        (Value.Obj)
            om.findStrict(
                "ti.sdo.ce.examples.codecs.g711.G711DEC", "ti.sdo.ce.examples.codecs.g711");
    po =
        (Proto.Obj)
            om.findStrict(
                "ti.sdo.ce.examples.codecs.g711.G711DEC.Module", "ti.sdo.ce.examples.codecs.g711");
    vo.init2(po, "ti.sdo.ce.examples.codecs.g711.G711DEC", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Module");
    vo.bind(
        "$capsule",
        om.findStrict(
            "ti.sdo.ce.examples.codecs.g711.G711DEC$$capsule", "ti.sdo.ce.examples.codecs.g711"));
    vo.bind(
        "$package",
        om.findStrict("ti.sdo.ce.examples.codecs.g711", "ti.sdo.ce.examples.codecs.g711"));
    tdefs.clear();
    proxies.clear();
    mcfgs.clear();
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray()));
    ((Value.Arr) pkgV.getv("$modules")).add(vo);
    ((Value.Arr) om.findStrict("$modules", "ti.sdo.ce.examples.codecs.g711")).add(vo);
    vo.bind("$$instflag", 0);
    vo.bind("$$iobjflag", 1);
    vo.bind("$$sizeflag", 1);
    vo.bind("$$dlgflag", 0);
    vo.bind("$$iflag", 1);
    vo.bind("$$romcfgs", "|");
    Proto.Str ps = (Proto.Str) vo.find("Module_State");
    if (ps != null) vo.bind("$object", ps.newInstance());
    vo.bind(
        "$$meta_iobj",
        om.has("ti.sdo.ce.examples.codecs.g711.G711DEC$$instance$static$init", null) ? 1 : 0);
    vo.bind("$$fxntab", Global.newArray());
    vo.bind("$$logEvtCfgs", Global.newArray());
    vo.bind("$$errorDescCfgs", Global.newArray());
    vo.bind("$$assertDescCfgs", Global.newArray());
    Value.Map atmap = (Value.Map) vo.getv("$attr");
    atmap.seal("length");
    pkgV.bind("G711DEC", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("G711DEC");
  }

  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn(
        "module$meta$init",
        (Scriptable)
            om.findStrict(
                "ti.sdo.ce.examples.codecs.g711.G711ENC", "ti.sdo.ce.examples.codecs.g711"));
    Global.callFxn(
        "module$meta$init",
        (Scriptable)
            om.findStrict(
                "ti.sdo.ce.examples.codecs.g711.G711DEC", "ti.sdo.ce.examples.codecs.g711"));
    Global.callFxn("init", pkgV);
    ((Value.Obj) om.getv("ti.sdo.ce.examples.codecs.g711.G711ENC")).bless();
    ((Value.Obj) om.getv("ti.sdo.ce.examples.codecs.g711.G711DEC")).bless();
    ((Value.Arr) om.findStrict("$packages", "ti.sdo.ce.examples.codecs.g711")).add(pkgV);
  }

  public void exec(Scriptable xdcO, Session ses) {
    this.xdcO = xdcO;
    this.ses = ses;
    om = (Value.Obj) xdcO.get("om", null);

    Object o = om.geto("$name");
    String s = o instanceof String ? (String) o : null;
    isCFG = s != null && s.equals("cfg");
    isROV = s != null && s.equals("rov");

    $$IMPORTS();
    $$OBJECTS();
    G711ENC$$OBJECTS();
    G711DEC$$OBJECTS();
    G711ENC$$CONSTS();
    G711DEC$$CONSTS();
    G711ENC$$CREATES();
    G711DEC$$CREATES();
    G711ENC$$FUNCTIONS();
    G711DEC$$FUNCTIONS();
    G711ENC$$SIZES();
    G711DEC$$SIZES();
    G711ENC$$TYPES();
    G711DEC$$TYPES();
    if (isROV) {
      G711ENC$$ROV();
      G711DEC$$ROV();
    } // isROV
    $$SINGLETONS();
    G711ENC$$SINGLETONS();
    G711DEC$$SINGLETONS();
    $$INITIALIZATION();
  }
}
예제 #7
0
public class ti_platforms_sdp5430 {
  static final String VERS = "@(#) xdc-y32\n";

  static final Proto.Elm $$T_Bool = Proto.Elm.newBool();
  static final Proto.Elm $$T_Num = Proto.Elm.newNum();
  static final Proto.Elm $$T_Str = Proto.Elm.newStr();
  static final Proto.Elm $$T_Obj = Proto.Elm.newObj();

  static final Proto.Fxn $$T_Met = new Proto.Fxn(null, null, 0, -1, false);
  static final Proto.Map $$T_Map = new Proto.Map($$T_Obj);
  static final Proto.Arr $$T_Vec = new Proto.Arr($$T_Obj);

  static final XScriptO $$DEFAULT = Value.DEFAULT;
  static final Object $$UNDEF = Undefined.instance;

  static final Proto.Obj $$Package = (Proto.Obj) Global.get("$$Package");
  static final Proto.Obj $$Module = (Proto.Obj) Global.get("$$Module");
  static final Proto.Obj $$Instance = (Proto.Obj) Global.get("$$Instance");
  static final Proto.Obj $$Params = (Proto.Obj) Global.get("$$Params");

  static final Object $$objFldGet = Global.get("$$objFldGet");
  static final Object $$objFldSet = Global.get("$$objFldSet");
  static final Object $$proxyGet = Global.get("$$proxyGet");
  static final Object $$proxySet = Global.get("$$proxySet");
  static final Object $$delegGet = Global.get("$$delegGet");
  static final Object $$delegSet = Global.get("$$delegSet");

  Scriptable xdcO;
  Session ses;
  Value.Obj om;

  boolean isROV;
  boolean isCFG;

  Proto.Obj pkgP;
  Value.Obj pkgV;

  ArrayList<Object> imports = new ArrayList<Object>();
  ArrayList<Object> loggables = new ArrayList<Object>();
  ArrayList<Object> mcfgs = new ArrayList<Object>();
  ArrayList<Object> icfgs = new ArrayList<Object>();
  ArrayList<String> inherits = new ArrayList<String>();
  ArrayList<Object> proxies = new ArrayList<Object>();
  ArrayList<Object> sizes = new ArrayList<Object>();
  ArrayList<Object> tdefs = new ArrayList<Object>();

  void $$IMPORTS() {
    Global.callFxn("loadPackage", xdcO, "ti.catalog.c6000");
    Global.callFxn("loadPackage", xdcO, "ti.catalog.arm.cortexm3");
    Global.callFxn("loadPackage", xdcO, "ti.catalog.arm.cortexa9");
    Global.callFxn("loadPackage", xdcO, "xdc.platform");
    Global.callFxn("loadPackage", xdcO, "xdc");
    Global.callFxn("loadPackage", xdcO, "xdc.corevers");
  }

  void $$OBJECTS() {
    pkgP = (Proto.Obj) om.bind("ti.platforms.sdp5430.Package", new Proto.Obj());
    pkgV = (Value.Obj) om.bind("ti.platforms.sdp5430", new Value.Obj("ti.platforms.sdp5430", pkgP));
  }

  void Platform$$OBJECTS() {
    Proto.Obj po, spo;
    Value.Obj vo;

    po = (Proto.Obj) om.bind("ti.platforms.sdp5430.Platform.Module", new Proto.Obj());
    vo =
        (Value.Obj)
            om.bind(
                "ti.platforms.sdp5430.Platform",
                new Value.Obj("ti.platforms.sdp5430.Platform", po));
    pkgV.bind("Platform", vo);
    // decls
    om.bind(
        "ti.platforms.sdp5430.Platform.Board",
        om.findStrict("xdc.platform.IPlatform.Board", "ti.platforms.sdp5430"));
    om.bind(
        "ti.platforms.sdp5430.Platform.Memory",
        om.findStrict("xdc.platform.IPlatform.Memory", "ti.platforms.sdp5430"));
    // insts
    Object insP = om.bind("ti.platforms.sdp5430.Platform.Instance", new Proto.Obj());
    po = (Proto.Obj) om.bind("ti.platforms.sdp5430.Platform$$Object", new Proto.Obj());
    Object objP = om.bind("ti.platforms.sdp5430.Platform.Object", new Proto.Str(po, true));
    po = (Proto.Obj) om.bind("ti.platforms.sdp5430.Platform$$Params", new Proto.Obj());
    om.bind("ti.platforms.sdp5430.Platform.Params", new Proto.Str(po, true));
  }

  void Platform$$CONSTS() {
    // module Platform
  }

  void Platform$$CREATES() {
    Proto.Fxn fxn;
    StringBuilder sb;

    fxn =
        (Proto.Fxn)
            om.bind(
                "ti.platforms.sdp5430.Platform$$create",
                new Proto.Fxn(
                    om.findStrict("ti.platforms.sdp5430.Platform.Module", "ti.platforms.sdp5430"),
                    om.findStrict("ti.platforms.sdp5430.Platform.Instance", "ti.platforms.sdp5430"),
                    3,
                    2,
                    false));
    fxn.addArg(0, "name", $$T_Str, $$UNDEF);
    fxn.addArg(1, "args", $$T_Obj, $$UNDEF);
    fxn.addArg(
        2,
        "__params",
        (Proto) om.findStrict("ti.platforms.sdp5430.Platform.Params", "ti.platforms.sdp5430"),
        Global.newObject());
    sb = new StringBuilder();
    sb.append("ti$platforms$sdp5430$Platform$$create = function( name, args, __params ) {\n");
    sb.append("var __mod = xdc.om['ti.platforms.sdp5430.Platform'];\n");
    sb.append("var __inst = xdc.om['ti.platforms.sdp5430.Platform.Instance'].$$make();\n");
    sb.append("__inst.$$bind('$package', xdc.om['ti.platforms.sdp5430']);\n");
    sb.append("__inst.$$bind('$index', __mod.$instances.length);\n");
    sb.append("__inst.$$bind('$category', 'Instance');\n");
    sb.append("__inst.$$bind('$args', {name:name, args:args});\n");
    sb.append("__inst.$$bind('$module', __mod);\n");
    sb.append("__mod.$instances.$add(__inst);\n");
    sb.append("__inst.externalMemoryMap = __mod.PARAMS.externalMemoryMap;\n");
    sb.append("__inst.customMemoryMap = __mod.PARAMS.customMemoryMap;\n");
    sb.append("__inst.renameMap = __mod.PARAMS.renameMap;\n");
    sb.append("__inst.dataMemory = __mod.PARAMS.dataMemory;\n");
    sb.append("__inst.codeMemory = __mod.PARAMS.codeMemory;\n");
    sb.append("__inst.stackMemory = __mod.PARAMS.stackMemory;\n");
    sb.append("__inst.sectMap = __mod.PARAMS.sectMap;\n");
    sb.append("for (var __p in __params) __inst[__p] = __params[__p];\n");
    sb.append("var save = xdc.om.$curpkg;\n");
    sb.append("xdc.om.$$bind('$curpkg', __mod.$package.$name);\n");
    sb.append("__mod.instance$meta$init.$fxn.apply(__inst, [name, args]);\n");
    sb.append("xdc.om.$$bind('$curpkg', save);\n");
    sb.append("__inst.$$bless();\n");
    sb.append("return __inst;\n");
    sb.append("}\n");
    Global.eval(sb.toString());
    fxn =
        (Proto.Fxn)
            om.bind(
                "ti.platforms.sdp5430.Platform$$construct",
                new Proto.Fxn(
                    om.findStrict("ti.platforms.sdp5430.Platform.Module", "ti.platforms.sdp5430"),
                    null,
                    4,
                    2,
                    false));
    fxn.addArg(
        0,
        "__obj",
        (Proto) om.findStrict("ti.platforms.sdp5430.Platform$$Object", "ti.platforms.sdp5430"),
        null);
    fxn.addArg(1, "name", $$T_Str, $$UNDEF);
    fxn.addArg(2, "args", $$T_Obj, $$UNDEF);
    fxn.addArg(
        3,
        "__params",
        (Proto) om.findStrict("ti.platforms.sdp5430.Platform.Params", "ti.platforms.sdp5430"),
        Global.newObject());
    sb = new StringBuilder();
    sb.append(
        "ti$platforms$sdp5430$Platform$$construct = function( __obj, name, args, __params ) {\n");
    sb.append("var __mod = xdc.om['ti.platforms.sdp5430.Platform'];\n");
    sb.append("var __inst = __obj;\n");
    sb.append("__inst.$$bind('$args', {name:name, args:args});\n");
    sb.append("__inst.$$bind('$module', __mod);\n");
    sb.append("__mod.$objects.$add(__inst);\n");
    sb.append("__inst.externalMemoryMap = __mod.PARAMS.externalMemoryMap;\n");
    sb.append("__inst.customMemoryMap = __mod.PARAMS.customMemoryMap;\n");
    sb.append("__inst.renameMap = __mod.PARAMS.renameMap;\n");
    sb.append("__inst.dataMemory = __mod.PARAMS.dataMemory;\n");
    sb.append("__inst.codeMemory = __mod.PARAMS.codeMemory;\n");
    sb.append("__inst.stackMemory = __mod.PARAMS.stackMemory;\n");
    sb.append("__inst.sectMap = __mod.PARAMS.sectMap;\n");
    sb.append("for (var __p in __params) __inst[__p] = __params[__p];\n");
    sb.append("__inst.$$bless();\n");
    sb.append("return null;\n");
    sb.append("}\n");
    Global.eval(sb.toString());
  }

  void Platform$$FUNCTIONS() {
    Proto.Fxn fxn;
  }

  void Platform$$SIZES() {}

  void Platform$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "ti/platforms/sdp5430/Platform.xs");
    om.bind("ti.platforms.sdp5430.Platform$$capsule", cap);
    po = (Proto.Obj) om.findStrict("ti.platforms.sdp5430.Platform.Module", "ti.platforms.sdp5430");
    po.init(
        "ti.platforms.sdp5430.Platform.Module",
        om.findStrict("xdc.platform.IPlatform.Module", "ti.platforms.sdp5430"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "BOARD",
        (Proto) om.findStrict("xdc.platform.IPlatform.Board", "ti.platforms.sdp5430"),
        Global.newObject(
            "id", "0", "boardName", "sdp5430", "boardFamily", "sdp5430", "boardRevision", null),
        "rh");
    po.addFld(
        "GEM",
        (Proto) om.findStrict("xdc.platform.IExeContext.Cpu", "ti.platforms.sdp5430"),
        Global.newObject(
            "id",
            "0",
            "clockRate",
            466L,
            "catalogName",
            "ti.catalog.c6000",
            "deviceName",
            "OMAP5430",
            "revision",
            "1.0"),
        "rh");
    po.addFld(
        "DSS",
        (Proto) om.findStrict("xdc.platform.IExeContext.Cpu", "ti.platforms.sdp5430"),
        Global.newObject(
            "id",
            "1",
            "clockRate",
            212.8,
            "catalogName",
            "ti.catalog.arm.cortexm4",
            "deviceName",
            "OMAP5430",
            "revision",
            "1.0"),
        "rh");
    po.addFld(
        "GPP",
        (Proto) om.findStrict("xdc.platform.IExeContext.Cpu", "ti.platforms.sdp5430"),
        Global.newObject(
            "id",
            "2",
            "clockRate",
            800.0,
            "catalogName",
            "ti.catalog.arm.cortexa15",
            "deviceName",
            "OMAP5430",
            "revision",
            "1.0"),
        "rh");
    po.addFxn(
        "create",
        (Proto.Fxn) om.findStrict("ti.platforms.sdp5430.Platform$$create", "ti.platforms.sdp5430"),
        Global.get("ti$platforms$sdp5430$Platform$$create"));
    po.addFxn(
        "construct",
        (Proto.Fxn)
            om.findStrict("ti.platforms.sdp5430.Platform$$construct", "ti.platforms.sdp5430"),
        Global.get("ti$platforms$sdp5430$Platform$$construct"));
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("ti.platforms.sdp5430.Platform$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("ti.platforms.sdp5430.Platform$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "instance$meta$init");
    if (fxn != null) om.bind("ti.platforms.sdp5430.Platform$$instance$meta$init", true);
    if (fxn != null) po.addFxn("instance$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("ti.platforms.sdp5430.Platform$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    po =
        (Proto.Obj) om.findStrict("ti.platforms.sdp5430.Platform.Instance", "ti.platforms.sdp5430");
    po.init(
        "ti.platforms.sdp5430.Platform.Instance",
        om.findStrict("xdc.platform.IPlatform.Instance", "ti.platforms.sdp5430"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "externalMemoryMap",
        new Proto.Map(
            (Proto) om.findStrict("xdc.platform.IPlatform.Memory", "ti.platforms.sdp5430")),
        Global.newArray(
            new Object[] {
              Global.newArray(
                  new Object[] {
                    "EXT_RAM",
                    Global.newObject(
                        "comment",
                        "External RAM",
                        "name",
                        "EXT_RAM",
                        "base",
                        0x80000000L,
                        "len",
                        0x20000000L)
                  })
            }),
        "rh");
    po.addFld("codeMemory", $$T_Str, "EXT_RAM", "wh");
    po.addFld("dataMemory", $$T_Str, "EXT_RAM", "wh");
    po.addFld("stackMemory", $$T_Str, "EXT_RAM", "wh");
    po.addFld("l1PMode", $$T_Str, "32k", "wh");
    po.addFld("l1DMode", $$T_Str, "32k", "wh");
    po.addFld("l2Mode", $$T_Str, "0k", "wh");
    fxn = Global.get(cap, "getCpuDataSheet");
    if (fxn != null)
      po.addFxn(
          "getCpuDataSheet",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCpuDataSheet", "ti.platforms.sdp5430"),
          fxn);
    fxn = Global.get(cap, "getCreateArgs");
    if (fxn != null)
      po.addFxn(
          "getCreateArgs",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCreateArgs", "ti.platforms.sdp5430"),
          fxn);
    fxn = Global.get(cap, "getExeContext");
    if (fxn != null)
      po.addFxn(
          "getExeContext",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getExeContext", "ti.platforms.sdp5430"),
          fxn);
    fxn = Global.get(cap, "getExecCmd");
    if (fxn != null)
      po.addFxn(
          "getExecCmd",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getExecCmd", "ti.platforms.sdp5430"),
          fxn);
    fxn = Global.get(cap, "getLinkTemplate");
    if (fxn != null)
      po.addFxn(
          "getLinkTemplate",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getLinkTemplate", "ti.platforms.sdp5430"),
          fxn);
    po = (Proto.Obj) om.findStrict("ti.platforms.sdp5430.Platform$$Params", "ti.platforms.sdp5430");
    po.init(
        "ti.platforms.sdp5430.Platform.Params",
        om.findStrict("xdc.platform.IPlatform$$Params", "ti.platforms.sdp5430"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "externalMemoryMap",
        new Proto.Map(
            (Proto) om.findStrict("xdc.platform.IPlatform.Memory", "ti.platforms.sdp5430")),
        Global.newArray(
            new Object[] {
              Global.newArray(
                  new Object[] {
                    "EXT_RAM",
                    Global.newObject(
                        "comment",
                        "External RAM",
                        "name",
                        "EXT_RAM",
                        "base",
                        0x80000000L,
                        "len",
                        0x20000000L)
                  })
            }),
        "rh");
    po.addFld("codeMemory", $$T_Str, "EXT_RAM", "wh");
    po.addFld("dataMemory", $$T_Str, "EXT_RAM", "wh");
    po.addFld("stackMemory", $$T_Str, "EXT_RAM", "wh");
    po.addFld("l1PMode", $$T_Str, "32k", "wh");
    po.addFld("l1DMode", $$T_Str, "32k", "wh");
    po.addFld("l2Mode", $$T_Str, "0k", "wh");
    po = (Proto.Obj) om.findStrict("ti.platforms.sdp5430.Platform$$Object", "ti.platforms.sdp5430");
    po.init(
        "ti.platforms.sdp5430.Platform.Object",
        om.findStrict("ti.platforms.sdp5430.Platform.Instance", "ti.platforms.sdp5430"));
    fxn = Global.get(cap, "getCpuDataSheet");
    if (fxn != null)
      po.addFxn(
          "getCpuDataSheet",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCpuDataSheet", "ti.platforms.sdp5430"),
          fxn);
    fxn = Global.get(cap, "getCreateArgs");
    if (fxn != null)
      po.addFxn(
          "getCreateArgs",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCreateArgs", "ti.platforms.sdp5430"),
          fxn);
    fxn = Global.get(cap, "getExeContext");
    if (fxn != null)
      po.addFxn(
          "getExeContext",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getExeContext", "ti.platforms.sdp5430"),
          fxn);
    fxn = Global.get(cap, "getExecCmd");
    if (fxn != null)
      po.addFxn(
          "getExecCmd",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getExecCmd", "ti.platforms.sdp5430"),
          fxn);
    fxn = Global.get(cap, "getLinkTemplate");
    if (fxn != null)
      po.addFxn(
          "getLinkTemplate",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getLinkTemplate", "ti.platforms.sdp5430"),
          fxn);
  }

  void Platform$$ROV() {}

  void $$SINGLETONS() {
    pkgP.init(
        "ti.platforms.sdp5430.Package",
        (Proto.Obj) om.findStrict("xdc.IPackage.Module", "ti.platforms.sdp5430"));
    pkgP.bind("$capsule", $$UNDEF);
    pkgV.init2(pkgP, "ti.platforms.sdp5430", Value.DEFAULT, false);
    pkgV.bind("$name", "ti.platforms.sdp5430");
    pkgV.bind("$category", "Package");
    pkgV.bind("$$qn", "ti.platforms.sdp5430.");
    pkgV.bind("$vers", Global.newArray("1, 0, 0, 0"));
    Value.Map atmap = (Value.Map) pkgV.getv("$attr");
    atmap.seal("length");
    imports.clear();
    imports.add(Global.newArray("ti.catalog.c6000", Global.newArray()));
    imports.add(Global.newArray("ti.catalog.arm.cortexm3", Global.newArray()));
    imports.add(Global.newArray("ti.catalog.arm.cortexa9", Global.newArray()));
    imports.add(Global.newArray("xdc.platform", Global.newArray(1, 0, 1)));
    pkgV.bind("$imports", imports);
    StringBuilder sb = new StringBuilder();
    sb.append("var pkg = xdc.om['ti.platforms.sdp5430'];\n");
    sb.append("if (pkg.$vers.length >= 3) {\n");
    sb.append("pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..'));\n");
    sb.append("}\n");
    sb.append("pkg.build.libraries = [\n");
    sb.append("];\n");
    sb.append("pkg.build.libDesc = [\n");
    sb.append("];\n");
    Global.eval(sb.toString());
  }

  void Platform$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo = (Value.Obj) om.findStrict("ti.platforms.sdp5430.Platform", "ti.platforms.sdp5430");
    po = (Proto.Obj) om.findStrict("ti.platforms.sdp5430.Platform.Module", "ti.platforms.sdp5430");
    vo.init2(po, "ti.platforms.sdp5430.Platform", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Module");
    vo.bind(
        "$capsule",
        om.findStrict("ti.platforms.sdp5430.Platform$$capsule", "ti.platforms.sdp5430"));
    vo.bind(
        "Instance",
        om.findStrict("ti.platforms.sdp5430.Platform.Instance", "ti.platforms.sdp5430"));
    vo.bind(
        "Params", om.findStrict("ti.platforms.sdp5430.Platform.Params", "ti.platforms.sdp5430"));
    vo.bind(
        "PARAMS",
        ((Proto.Str) om.findStrict("ti.platforms.sdp5430.Platform.Params", "ti.platforms.sdp5430"))
            .newInstance());
    vo.bind("$package", om.findStrict("ti.platforms.sdp5430", "ti.platforms.sdp5430"));
    tdefs.clear();
    proxies.clear();
    mcfgs.clear();
    icfgs.clear();
    inherits.clear();
    vo.bind("Board", om.findStrict("xdc.platform.IPlatform.Board", "ti.platforms.sdp5430"));
    tdefs.add(om.findStrict("xdc.platform.IPlatform.Board", "ti.platforms.sdp5430"));
    vo.bind("Memory", om.findStrict("xdc.platform.IPlatform.Memory", "ti.platforms.sdp5430"));
    tdefs.add(om.findStrict("xdc.platform.IPlatform.Memory", "ti.platforms.sdp5430"));
    vo.bind("MemoryMap", om.findStrict("xdc.platform.IPlatform.MemoryMap", "ti.platforms.sdp5430"));
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray()));
    vo.bind("$$icfgs", Global.newArray(icfgs.toArray()));
    inherits.add("xdc.platform");
    vo.bind("$$inherits", Global.newArray(inherits.toArray()));
    ((Value.Arr) pkgV.getv("$modules")).add(vo);
    ((Value.Arr) om.findStrict("$modules", "ti.platforms.sdp5430")).add(vo);
    vo.bind("$$instflag", 1);
    vo.bind("$$iobjflag", 1);
    vo.bind("$$sizeflag", 1);
    vo.bind("$$dlgflag", 0);
    vo.bind("$$iflag", 1);
    vo.bind("$$romcfgs", "|");
    vo.bind("$$nortsflag", 0);
    Proto.Str ps = (Proto.Str) vo.find("Module_State");
    if (ps != null) vo.bind("$object", ps.newInstance());
    vo.bind(
        "$$meta_iobj", om.has("ti.platforms.sdp5430.Platform$$instance$static$init", null) ? 1 : 0);
    vo.bind("$$fxntab", Global.newArray());
    vo.bind("$$logEvtCfgs", Global.newArray());
    vo.bind("$$errorDescCfgs", Global.newArray());
    vo.bind("$$assertDescCfgs", Global.newArray());
    Value.Map atmap = (Value.Map) vo.getv("$attr");
    atmap.seal("length");
    vo.bind(
        "Object", om.findStrict("ti.platforms.sdp5430.Platform.Object", "ti.platforms.sdp5430"));
    pkgV.bind("Platform", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("Platform");
  }

  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn(
        "module$meta$init",
        (Scriptable) om.findStrict("ti.platforms.sdp5430.Platform", "ti.platforms.sdp5430"));
    Global.callFxn("init", pkgV);
    ((Value.Obj) om.getv("ti.platforms.sdp5430.Platform")).bless();
    ((Value.Arr) om.findStrict("$packages", "ti.platforms.sdp5430")).add(pkgV);
  }

  public void exec(Scriptable xdcO, Session ses) {
    this.xdcO = xdcO;
    this.ses = ses;
    om = (Value.Obj) xdcO.get("om", null);

    Object o = om.geto("$name");
    String s = o instanceof String ? (String) o : null;
    isCFG = s != null && s.equals("cfg");
    isROV = s != null && s.equals("rov");

    $$IMPORTS();
    $$OBJECTS();
    Platform$$OBJECTS();
    Platform$$CONSTS();
    Platform$$CREATES();
    Platform$$FUNCTIONS();
    Platform$$SIZES();
    Platform$$TYPES();
    if (isROV) {
      Platform$$ROV();
    } // isROV
    $$SINGLETONS();
    Platform$$SINGLETONS();
    $$INITIALIZATION();
  }
}
예제 #8
0
public class ti_sdo_ipc_examples {
  static final String VERS = "@(#) xdc-y35\n";

  static final Proto.Elm $$T_Bool = Proto.Elm.newBool();
  static final Proto.Elm $$T_Num = Proto.Elm.newNum();
  static final Proto.Elm $$T_Str = Proto.Elm.newStr();
  static final Proto.Elm $$T_Obj = Proto.Elm.newObj();

  static final Proto.Fxn $$T_Met = new Proto.Fxn(null, null, 0, -1, false);
  static final Proto.Map $$T_Map = new Proto.Map($$T_Obj);
  static final Proto.Arr $$T_Vec = new Proto.Arr($$T_Obj);

  static final XScriptO $$DEFAULT = Value.DEFAULT;
  static final Object $$UNDEF = Undefined.instance;

  static final Proto.Obj $$Package = (Proto.Obj) Global.get("$$Package");
  static final Proto.Obj $$Module = (Proto.Obj) Global.get("$$Module");
  static final Proto.Obj $$Instance = (Proto.Obj) Global.get("$$Instance");
  static final Proto.Obj $$Params = (Proto.Obj) Global.get("$$Params");

  static final Object $$objFldGet = Global.get("$$objFldGet");
  static final Object $$objFldSet = Global.get("$$objFldSet");
  static final Object $$proxyGet = Global.get("$$proxyGet");
  static final Object $$proxySet = Global.get("$$proxySet");
  static final Object $$delegGet = Global.get("$$delegGet");
  static final Object $$delegSet = Global.get("$$delegSet");

  Scriptable xdcO;
  Session ses;
  Value.Obj om;

  boolean isROV;
  boolean isCFG;

  Proto.Obj pkgP;
  Value.Obj pkgV;

  ArrayList<Object> imports = new ArrayList<Object>();
  ArrayList<Object> loggables = new ArrayList<Object>();
  ArrayList<Object> mcfgs = new ArrayList<Object>();
  ArrayList<Object> icfgs = new ArrayList<Object>();
  ArrayList<String> inherits = new ArrayList<String>();
  ArrayList<Object> proxies = new ArrayList<Object>();
  ArrayList<Object> sizes = new ArrayList<Object>();
  ArrayList<Object> tdefs = new ArrayList<Object>();

  void $$IMPORTS() {
    Global.callFxn("loadPackage", xdcO, "xdc");
    Global.callFxn("loadPackage", xdcO, "xdc.corevers");
    Global.callFxn("loadPackage", xdcO, "xdc.tools.product");
  }

  void $$OBJECTS() {
    pkgP = (Proto.Obj) om.bind("ti.sdo.ipc.examples.Package", new Proto.Obj());
    pkgV = (Value.Obj) om.bind("ti.sdo.ipc.examples", new Value.Obj("ti.sdo.ipc.examples", pkgP));
  }

  void Examples$$OBJECTS() {
    Proto.Obj po, spo;
    Value.Obj vo;

    po = (Proto.Obj) om.bind("ti.sdo.ipc.examples.Examples.Module", new Proto.Obj());
    vo =
        (Value.Obj)
            om.bind(
                "ti.sdo.ipc.examples.Examples", new Value.Obj("ti.sdo.ipc.examples.Examples", po));
    pkgV.bind("Examples", vo);
    // decls
    om.bind(
        "ti.sdo.ipc.examples.Examples.FileDesc",
        om.findStrict("xdc.tools.product.IProductTemplate.FileDesc", "ti.sdo.ipc.examples"));
    om.bind(
        "ti.sdo.ipc.examples.Examples.Filter",
        om.findStrict("xdc.tools.product.IProductTemplate.Filter", "ti.sdo.ipc.examples"));
    om.bind(
        "ti.sdo.ipc.examples.Examples.TemplateInfo",
        om.findStrict("xdc.tools.product.IProductTemplate.TemplateInfo", "ti.sdo.ipc.examples"));
    om.bind(
        "ti.sdo.ipc.examples.Examples.TemplateGroup",
        om.findStrict("xdc.tools.product.IProductTemplate.TemplateGroup", "ti.sdo.ipc.examples"));
  }

  void Examples$$CONSTS() {
    // module Examples
  }

  void Examples$$CREATES() {
    Proto.Fxn fxn;
    StringBuilder sb;
  }

  void Examples$$FUNCTIONS() {
    Proto.Fxn fxn;
  }

  void Examples$$SIZES() {}

  void Examples$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "ti/sdo/ipc/examples/Examples.xs");
    om.bind("ti.sdo.ipc.examples.Examples$$capsule", cap);
    po = (Proto.Obj) om.findStrict("ti.sdo.ipc.examples.Examples.Module", "ti.sdo.ipc.examples");
    po.init(
        "ti.sdo.ipc.examples.Examples.Module",
        om.findStrict("xdc.tools.product.IProductTemplate.Module", "ti.sdo.ipc.examples"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "root",
        (Proto)
            om.findStrict(
                "xdc.tools.product.IProductTemplate.TemplateGroup", "ti.sdo.ipc.examples"),
        Global.newObject(
            "id",
            "ti.sdo.ipc.examples.root",
            "name",
            "IPC and I/O Examples",
            "description",
            "IPC and I/O Examples"),
        "wh");
    po.addFld(
        "generic",
        (Proto)
            om.findStrict(
                "xdc.tools.product.IProductTemplate.TemplateGroup", "ti.sdo.ipc.examples"),
        Global.newObject(
            "id",
            "ti.sdo.ipc.examples.root.generic",
            "name",
            "Generic IPC and I/O Examples",
            "description",
            "Generic IPC and I/O Examples",
            "groups",
            Global.newArray(new Object[] {"ti.sdo.ipc.examples.root"})),
        "wh");
    po.addFld(
        "templateGroupArr",
        new Proto.Arr(
            (Proto)
                om.findStrict(
                    "xdc.tools.product.IProductTemplate.TemplateGroup", "ti.sdo.ipc.examples"),
            false),
        Global.newArray(
            new Object[] {
              Global.newObject(
                  "id",
                  "ti.sdo.ipc.examples.root",
                  "name",
                  "IPC and I/O Examples",
                  "description",
                  "IPC and I/O Examples"),
              Global.newObject(
                  "id",
                  "ti.sdo.ipc.examples.root.generic",
                  "name",
                  "Generic IPC and I/O Examples",
                  "description",
                  "Generic IPC and I/O Examples",
                  "groups",
                  Global.newArray(new Object[] {"ti.sdo.ipc.examples.root"}))
            }),
        "wh");
    po.addFld(
        "stream",
        (Proto)
            om.findStrict("xdc.tools.product.IProductTemplate.TemplateInfo", "ti.sdo.ipc.examples"),
        Global.newObject(
            "title",
            "I/O Stream",
            "fileList",
            Global.newArray(
                new Object[] {
                  Global.newObject("path", "./io/stream.c"),
                  Global.newObject("path", "./io/stream.cfg")
                }),
            "description",
            "This example shows the use of ti.sdo.io.Stream module to demonstrate IO streaming using a driver. In this example we use the ti.sdo.io.Generator driver module. This example uses the Stream_ISSUE_RECLAIM model. A single task gets data from an input channel and sends the data out to an output channel.",
            "buildProfile",
            "release",
            "isHybrid",
            true,
            "filterArr",
            Global.newArray(
                new Object[] {
                  Global.newObject("deviceFamily", "C2000", "toolChain", "TI"),
                  Global.newObject("deviceFamily", "C6000", "toolChain", "TI"),
                  Global.newObject("deviceFamily", "ARP32", "toolChain", "TI"),
                  Global.newObject("deviceFamily", "ARM", "toolChain", "TI")
                }),
            "requiredProducts",
            Global.newArray(new Object[] {"com.ti.rtsc.SYSBIOS", "com.ti.rtsc.IPC"}),
            "groups",
            Global.newArray(new Object[] {"ti.sdo.ipc.examples.root"}),
            "linkerCommandFile",
            ""),
        "wh");
    po.addFld(
        "templateArr",
        new Proto.Arr(
            (Proto)
                om.findStrict(
                    "xdc.tools.product.IProductTemplate.TemplateInfo", "ti.sdo.ipc.examples"),
            false),
        Global.newArray(
            new Object[] {
              Global.newObject(
                  "title",
                  "I/O Stream",
                  "fileList",
                  Global.newArray(
                      new Object[] {
                        Global.newObject("path", "./io/stream.c"),
                        Global.newObject("path", "./io/stream.cfg")
                      }),
                  "description",
                  "This example shows the use of ti.sdo.io.Stream module to demonstrate IO streaming using a driver. In this example we use the ti.sdo.io.Generator driver module. This example uses the Stream_ISSUE_RECLAIM model. A single task gets data from an input channel and sends the data out to an output channel.",
                  "buildProfile",
                  "release",
                  "isHybrid",
                  true,
                  "filterArr",
                  Global.newArray(
                      new Object[] {
                        Global.newObject("deviceFamily", "C2000", "toolChain", "TI"),
                        Global.newObject("deviceFamily", "C6000", "toolChain", "TI"),
                        Global.newObject("deviceFamily", "ARP32", "toolChain", "TI"),
                        Global.newObject("deviceFamily", "ARM", "toolChain", "TI")
                      }),
                  "requiredProducts",
                  Global.newArray(new Object[] {"com.ti.rtsc.SYSBIOS", "com.ti.rtsc.IPC"}),
                  "groups",
                  Global.newArray(new Object[] {"ti.sdo.ipc.examples.root"}),
                  "linkerCommandFile",
                  "")
            }),
        "wh");
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("ti.sdo.ipc.examples.Examples$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("ti.sdo.ipc.examples.Examples$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("ti.sdo.ipc.examples.Examples$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
  }

  void Examples$$ROV() {}

  void $$SINGLETONS() {
    pkgP.init(
        "ti.sdo.ipc.examples.Package",
        (Proto.Obj) om.findStrict("xdc.IPackage.Module", "ti.sdo.ipc.examples"));
    pkgP.bind("$capsule", $$UNDEF);
    pkgV.init2(pkgP, "ti.sdo.ipc.examples", Value.DEFAULT, false);
    pkgV.bind("$name", "ti.sdo.ipc.examples");
    pkgV.bind("$category", "Package");
    pkgV.bind("$$qn", "ti.sdo.ipc.examples.");
    pkgV.bind("$vers", Global.newArray());
    Value.Map atmap = (Value.Map) pkgV.getv("$attr");
    atmap.seal("length");
    imports.clear();
    pkgV.bind("$imports", imports);
    StringBuilder sb = new StringBuilder();
    sb.append("var pkg = xdc.om['ti.sdo.ipc.examples'];\n");
    sb.append("if (pkg.$vers.length >= 3) {\n");
    sb.append("pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..'));\n");
    sb.append("}\n");
    sb.append("pkg.build.libraries = [\n");
    sb.append("];\n");
    sb.append("pkg.build.libDesc = [\n");
    sb.append("];\n");
    Global.eval(sb.toString());
  }

  void Examples$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo = (Value.Obj) om.findStrict("ti.sdo.ipc.examples.Examples", "ti.sdo.ipc.examples");
    po = (Proto.Obj) om.findStrict("ti.sdo.ipc.examples.Examples.Module", "ti.sdo.ipc.examples");
    vo.init2(po, "ti.sdo.ipc.examples.Examples", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Module");
    vo.bind(
        "$capsule", om.findStrict("ti.sdo.ipc.examples.Examples$$capsule", "ti.sdo.ipc.examples"));
    vo.bind("$package", om.findStrict("ti.sdo.ipc.examples", "ti.sdo.ipc.examples"));
    tdefs.clear();
    proxies.clear();
    mcfgs.clear();
    icfgs.clear();
    inherits.clear();
    vo.bind(
        "FileDesc",
        om.findStrict("xdc.tools.product.IProductTemplate.FileDesc", "ti.sdo.ipc.examples"));
    tdefs.add(om.findStrict("xdc.tools.product.IProductTemplate.FileDesc", "ti.sdo.ipc.examples"));
    vo.bind(
        "Filter",
        om.findStrict("xdc.tools.product.IProductTemplate.Filter", "ti.sdo.ipc.examples"));
    tdefs.add(om.findStrict("xdc.tools.product.IProductTemplate.Filter", "ti.sdo.ipc.examples"));
    vo.bind(
        "TemplateInfo",
        om.findStrict("xdc.tools.product.IProductTemplate.TemplateInfo", "ti.sdo.ipc.examples"));
    tdefs.add(
        om.findStrict("xdc.tools.product.IProductTemplate.TemplateInfo", "ti.sdo.ipc.examples"));
    vo.bind(
        "TemplateGroup",
        om.findStrict("xdc.tools.product.IProductTemplate.TemplateGroup", "ti.sdo.ipc.examples"));
    tdefs.add(
        om.findStrict("xdc.tools.product.IProductTemplate.TemplateGroup", "ti.sdo.ipc.examples"));
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray()));
    vo.bind("$$icfgs", Global.newArray(icfgs.toArray()));
    inherits.add("xdc.tools.product");
    vo.bind("$$inherits", Global.newArray(inherits.toArray()));
    ((Value.Arr) pkgV.getv("$modules")).add(vo);
    ((Value.Arr) om.findStrict("$modules", "ti.sdo.ipc.examples")).add(vo);
    vo.bind("$$instflag", 0);
    vo.bind("$$iobjflag", 1);
    vo.bind("$$sizeflag", 1);
    vo.bind("$$dlgflag", 0);
    vo.bind("$$iflag", 1);
    vo.bind("$$romcfgs", "|");
    vo.bind("$$nortsflag", 0);
    Proto.Str ps = (Proto.Str) vo.find("Module_State");
    if (ps != null) vo.bind("$object", ps.newInstance());
    vo.bind(
        "$$meta_iobj", om.has("ti.sdo.ipc.examples.Examples$$instance$static$init", null) ? 1 : 0);
    vo.bind("$$fxntab", Global.newArray());
    vo.bind("$$logEvtCfgs", Global.newArray());
    vo.bind("$$errorDescCfgs", Global.newArray());
    vo.bind("$$assertDescCfgs", Global.newArray());
    Value.Map atmap = (Value.Map) vo.getv("$attr");
    atmap.seal("length");
    pkgV.bind("Examples", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("Examples");
  }

  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn(
        "module$meta$init",
        (Scriptable) om.findStrict("ti.sdo.ipc.examples.Examples", "ti.sdo.ipc.examples"));
    Global.callFxn("init", pkgV);
    ((Value.Obj) om.getv("ti.sdo.ipc.examples.Examples")).bless();
    ((Value.Arr) om.findStrict("$packages", "ti.sdo.ipc.examples")).add(pkgV);
  }

  public void exec(Scriptable xdcO, Session ses) {
    this.xdcO = xdcO;
    this.ses = ses;
    om = (Value.Obj) xdcO.get("om", null);

    Object o = om.geto("$name");
    String s = o instanceof String ? (String) o : null;
    isCFG = s != null && s.equals("cfg");
    isROV = s != null && s.equals("rov");

    $$IMPORTS();
    $$OBJECTS();
    Examples$$OBJECTS();
    Examples$$CONSTS();
    Examples$$CREATES();
    Examples$$FUNCTIONS();
    Examples$$SIZES();
    Examples$$TYPES();
    if (isROV) {
      Examples$$ROV();
    } // isROV
    $$SINGLETONS();
    Examples$$SINGLETONS();
    $$INITIALIZATION();
  }
}
예제 #9
0
public class xdc_tools_cdoc_sg {
  static final String VERS = "@(#) xdc-y44\n";

  static final Proto.Elm $$T_Bool = Proto.Elm.newBool();
  static final Proto.Elm $$T_Num = Proto.Elm.newNum();
  static final Proto.Elm $$T_Str = Proto.Elm.newStr();
  static final Proto.Elm $$T_Obj = Proto.Elm.newObj();

  static final Proto.Fxn $$T_Met = new Proto.Fxn(null, null, 0, -1, false);
  static final Proto.Map $$T_Map = new Proto.Map($$T_Obj);
  static final Proto.Arr $$T_Vec = new Proto.Arr($$T_Obj);

  static final XScriptO $$DEFAULT = Value.DEFAULT;
  static final Object $$UNDEF = Undefined.instance;

  static final Proto.Obj $$Package = (Proto.Obj) Global.get("$$Package");
  static final Proto.Obj $$Module = (Proto.Obj) Global.get("$$Module");
  static final Proto.Obj $$Instance = (Proto.Obj) Global.get("$$Instance");
  static final Proto.Obj $$Params = (Proto.Obj) Global.get("$$Params");

  static final Object $$objFldGet = Global.get("$$objFldGet");
  static final Object $$objFldSet = Global.get("$$objFldSet");
  static final Object $$proxyGet = Global.get("$$proxyGet");
  static final Object $$proxySet = Global.get("$$proxySet");
  static final Object $$delegGet = Global.get("$$delegGet");
  static final Object $$delegSet = Global.get("$$delegSet");

  Scriptable xdcO;
  Session ses;
  Value.Obj om;

  boolean isROV;
  boolean isCFG;

  Proto.Obj pkgP;
  Value.Obj pkgV;

  ArrayList<Object> imports = new ArrayList<Object>();
  ArrayList<Object> loggables = new ArrayList<Object>();
  ArrayList<Object> mcfgs = new ArrayList<Object>();
  ArrayList<Object> icfgs = new ArrayList<Object>();
  ArrayList<String> inherits = new ArrayList<String>();
  ArrayList<Object> proxies = new ArrayList<Object>();
  ArrayList<Object> sizes = new ArrayList<Object>();
  ArrayList<Object> tdefs = new ArrayList<Object>();

  void $$IMPORTS() {
    Global.callFxn("loadPackage", xdcO, "xdc.tools.sg");
    Global.callFxn("loadPackage", xdcO, "xdc");
    Global.callFxn("loadPackage", xdcO, "xdc.corevers");
  }

  void $$OBJECTS() {
    pkgP = (Proto.Obj) om.bind("xdc.tools.cdoc.sg.Package", new Proto.Obj());
    pkgV = (Value.Obj) om.bind("xdc.tools.cdoc.sg", new Value.Obj("xdc.tools.cdoc.sg", pkgP));
  }

  void Main$$OBJECTS() {
    Proto.Obj po, spo;
    Value.Obj vo;

    po = (Proto.Obj) om.bind("xdc.tools.cdoc.sg.Main.Module", new Proto.Obj());
    vo = (Value.Obj) om.bind("xdc.tools.cdoc.sg.Main", new Value.Obj("xdc.tools.cdoc.sg.Main", po));
    pkgV.bind("Main", vo);
    // decls
  }

  void Main$$CONSTS() {
    // module Main
  }

  void Main$$CREATES() {
    Proto.Fxn fxn;
    StringBuilder sb;
  }

  void Main$$FUNCTIONS() {
    Proto.Fxn fxn;

    // fxn Main.main
    fxn =
        (Proto.Fxn)
            om.bind(
                "xdc.tools.cdoc.sg.Main$$main",
                new Proto.Fxn(
                    om.findStrict("xdc.tools.cdoc.sg.Main.Module", "xdc.tools.cdoc.sg"),
                    null,
                    0,
                    -1,
                    false));
  }

  void Main$$SIZES() {}

  void Main$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "xdc/tools/cdoc/sg/Main.xs");
    om.bind("xdc.tools.cdoc.sg.Main$$capsule", cap);
    po = (Proto.Obj) om.findStrict("xdc.tools.cdoc.sg.Main.Module", "xdc.tools.cdoc.sg");
    po.init("xdc.tools.cdoc.sg.Main.Module", $$Module);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("xdc.tools.cdoc.sg.Main$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("xdc.tools.cdoc.sg.Main$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("xdc.tools.cdoc.sg.Main$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    po.addFxn(
        "main",
        (Proto.Fxn) om.findStrict("xdc.tools.cdoc.sg.Main$$main", "xdc.tools.cdoc.sg"),
        Global.get(cap, "main"));
  }

  void Main$$ROV() {}

  void $$SINGLETONS() {
    pkgP.init(
        "xdc.tools.cdoc.sg.Package",
        (Proto.Obj) om.findStrict("xdc.IPackage.Module", "xdc.tools.cdoc.sg"));
    pkgP.bind("$capsule", $$UNDEF);
    pkgV.init2(pkgP, "xdc.tools.cdoc.sg", Value.DEFAULT, false);
    pkgV.bind("$name", "xdc.tools.cdoc.sg");
    pkgV.bind("$category", "Package");
    pkgV.bind("$$qn", "xdc.tools.cdoc.sg.");
    pkgV.bind("$vers", Global.newArray());
    Value.Map atmap = (Value.Map) pkgV.getv("$attr");
    atmap.seal("length");
    imports.clear();
    imports.add(Global.newArray("xdc.tools.sg", Global.newArray()));
    pkgV.bind("$imports", imports);
    StringBuilder sb = new StringBuilder();
    sb.append("var pkg = xdc.om['xdc.tools.cdoc.sg'];\n");
    sb.append("if (pkg.$vers.length >= 3) {\n");
    sb.append("pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..'));\n");
    sb.append("}\n");
    sb.append("pkg.build.libraries = [\n");
    sb.append("];\n");
    sb.append("pkg.build.libDesc = [\n");
    sb.append("];\n");
    Global.eval(sb.toString());
  }

  void Main$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo = (Value.Obj) om.findStrict("xdc.tools.cdoc.sg.Main", "xdc.tools.cdoc.sg");
    po = (Proto.Obj) om.findStrict("xdc.tools.cdoc.sg.Main.Module", "xdc.tools.cdoc.sg");
    vo.init2(po, "xdc.tools.cdoc.sg.Main", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Module");
    vo.bind("$capsule", om.findStrict("xdc.tools.cdoc.sg.Main$$capsule", "xdc.tools.cdoc.sg"));
    vo.bind("$package", om.findStrict("xdc.tools.cdoc.sg", "xdc.tools.cdoc.sg"));
    tdefs.clear();
    proxies.clear();
    mcfgs.clear();
    icfgs.clear();
    inherits.clear();
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray()));
    vo.bind("$$icfgs", Global.newArray(icfgs.toArray()));
    vo.bind("$$inherits", Global.newArray(inherits.toArray()));
    ((Value.Arr) pkgV.getv("$modules")).add(vo);
    ((Value.Arr) om.findStrict("$modules", "xdc.tools.cdoc.sg")).add(vo);
    vo.bind("$$instflag", 0);
    vo.bind("$$iobjflag", 1);
    vo.bind("$$sizeflag", 1);
    vo.bind("$$dlgflag", 0);
    vo.bind("$$iflag", 0);
    vo.bind("$$romcfgs", "|");
    vo.bind("$$nortsflag", 0);
    Proto.Str ps = (Proto.Str) vo.find("Module_State");
    if (ps != null) vo.bind("$object", ps.newInstance());
    vo.bind("$$meta_iobj", om.has("xdc.tools.cdoc.sg.Main$$instance$static$init", null) ? 1 : 0);
    vo.bind("$$fxntab", Global.newArray());
    vo.bind("$$logEvtCfgs", Global.newArray());
    vo.bind("$$errorDescCfgs", Global.newArray());
    vo.bind("$$assertDescCfgs", Global.newArray());
    Value.Map atmap = (Value.Map) vo.getv("$attr");
    atmap.seal("length");
    pkgV.bind("Main", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("Main");
  }

  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn(
        "module$meta$init",
        (Scriptable) om.findStrict("xdc.tools.cdoc.sg.Main", "xdc.tools.cdoc.sg"));
    Global.callFxn("init", pkgV);
    ((Value.Obj) om.getv("xdc.tools.cdoc.sg.Main")).bless();
    ((Value.Arr) om.findStrict("$packages", "xdc.tools.cdoc.sg")).add(pkgV);
  }

  public void exec(Scriptable xdcO, Session ses) {
    this.xdcO = xdcO;
    this.ses = ses;
    om = (Value.Obj) xdcO.get("om", null);

    Object o = om.geto("$name");
    String s = o instanceof String ? (String) o : null;
    isCFG = s != null && s.equals("cfg");
    isROV = s != null && s.equals("rov");

    $$IMPORTS();
    $$OBJECTS();
    Main$$OBJECTS();
    Main$$CONSTS();
    Main$$CREATES();
    Main$$FUNCTIONS();
    Main$$SIZES();
    Main$$TYPES();
    if (isROV) {
      Main$$ROV();
    } // isROV
    $$SINGLETONS();
    Main$$SINGLETONS();
    $$INITIALIZATION();
  }
}
예제 #10
0
public class ti_sysbios_rta {
  static final String VERS = "@(#) xdc-y35\n";

  static final Proto.Elm $$T_Bool = Proto.Elm.newBool();
  static final Proto.Elm $$T_Num = Proto.Elm.newNum();
  static final Proto.Elm $$T_Str = Proto.Elm.newStr();
  static final Proto.Elm $$T_Obj = Proto.Elm.newObj();

  static final Proto.Fxn $$T_Met = new Proto.Fxn(null, null, 0, -1, false);
  static final Proto.Map $$T_Map = new Proto.Map($$T_Obj);
  static final Proto.Arr $$T_Vec = new Proto.Arr($$T_Obj);

  static final XScriptO $$DEFAULT = Value.DEFAULT;
  static final Object $$UNDEF = Undefined.instance;

  static final Proto.Obj $$Package = (Proto.Obj) Global.get("$$Package");
  static final Proto.Obj $$Module = (Proto.Obj) Global.get("$$Module");
  static final Proto.Obj $$Instance = (Proto.Obj) Global.get("$$Instance");
  static final Proto.Obj $$Params = (Proto.Obj) Global.get("$$Params");

  static final Object $$objFldGet = Global.get("$$objFldGet");
  static final Object $$objFldSet = Global.get("$$objFldSet");
  static final Object $$proxyGet = Global.get("$$proxyGet");
  static final Object $$proxySet = Global.get("$$proxySet");
  static final Object $$delegGet = Global.get("$$delegGet");
  static final Object $$delegSet = Global.get("$$delegSet");

  Scriptable xdcO;
  Session ses;
  Value.Obj om;

  boolean isROV;
  boolean isCFG;

  Proto.Obj pkgP;
  Value.Obj pkgV;

  ArrayList<Object> imports = new ArrayList<Object>();
  ArrayList<Object> loggables = new ArrayList<Object>();
  ArrayList<Object> mcfgs = new ArrayList<Object>();
  ArrayList<Object> icfgs = new ArrayList<Object>();
  ArrayList<String> inherits = new ArrayList<String>();
  ArrayList<Object> proxies = new ArrayList<Object>();
  ArrayList<Object> sizes = new ArrayList<Object>();
  ArrayList<Object> tdefs = new ArrayList<Object>();

  void $$IMPORTS() {
    Global.callFxn("loadPackage", xdcO, "xdc");
    Global.callFxn("loadPackage", xdcO, "xdc.corevers");
    Global.callFxn("loadPackage", xdcO, "xdc.runtime");
    Global.callFxn("loadPackage", xdcO, "ti.sysbios.knl");
    Global.callFxn("loadPackage", xdcO, "xdc.rov");
  }

  void $$OBJECTS() {
    pkgP = (Proto.Obj) om.bind("ti.sysbios.rta.Package", new Proto.Obj());
    pkgV = (Value.Obj) om.bind("ti.sysbios.rta", new Value.Obj("ti.sysbios.rta", pkgP));
  }

  void Agent$$OBJECTS() {
    Proto.Obj po, spo;
    Value.Obj vo;

    po = (Proto.Obj) om.bind("ti.sysbios.rta.Agent.Module", new Proto.Obj());
    vo = (Value.Obj) om.bind("ti.sysbios.rta.Agent", new Value.Obj("ti.sysbios.rta.Agent", po));
    pkgV.bind("Agent", vo);
    // decls
    om.bind("ti.sysbios.rta.Agent.Transport", new Proto.Enm("ti.sysbios.rta.Agent.Transport"));
  }

  void SupportLogger$$OBJECTS() {
    Proto.Obj po, spo;
    Value.Obj vo;

    po = (Proto.Obj) om.bind("ti.sysbios.rta.SupportLogger.Module", new Proto.Obj());
    vo =
        (Value.Obj)
            om.bind(
                "ti.sysbios.rta.SupportLogger", new Value.Obj("ti.sysbios.rta.SupportLogger", po));
    pkgV.bind("SupportLogger", vo);
    // decls
  }

  void Agent$$CONSTS() {
    // module Agent
    om.bind(
        "ti.sysbios.rta.Agent.Transport_RTDX",
        xdc.services.intern.xsr.Enum.make(
            (Proto.Enm) om.findStrict("ti.sysbios.rta.Agent.Transport", "ti.sysbios.rta"),
            "ti.sysbios.rta.Agent.Transport_RTDX",
            0));
    om.bind(
        "ti.sysbios.rta.Agent.Transport_STOP_MODE_ONLY",
        xdc.services.intern.xsr.Enum.make(
            (Proto.Enm) om.findStrict("ti.sysbios.rta.Agent.Transport", "ti.sysbios.rta"),
            "ti.sysbios.rta.Agent.Transport_STOP_MODE_ONLY",
            1));
    om.bind(
        "ti.sysbios.rta.Agent.Transport_USER",
        xdc.services.intern.xsr.Enum.make(
            (Proto.Enm) om.findStrict("ti.sysbios.rta.Agent.Transport", "ti.sysbios.rta"),
            "ti.sysbios.rta.Agent.Transport_USER",
            2));
  }

  void SupportLogger$$CONSTS() {
    // module SupportLogger
  }

  void Agent$$CREATES() {
    Proto.Fxn fxn;
    StringBuilder sb;
  }

  void SupportLogger$$CREATES() {
    Proto.Fxn fxn;
    StringBuilder sb;
  }

  void Agent$$FUNCTIONS() {
    Proto.Fxn fxn;
  }

  void SupportLogger$$FUNCTIONS() {
    Proto.Fxn fxn;
  }

  void Agent$$SIZES() {}

  void SupportLogger$$SIZES() {
    Proto.Str so;
    Object fxn;
  }

  void Agent$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "ti/sysbios/rta/Agent.xs");
    om.bind("ti.sysbios.rta.Agent$$capsule", cap);
    po = (Proto.Obj) om.findStrict("ti.sysbios.rta.Agent.Module", "ti.sysbios.rta");
    po.init("ti.sysbios.rta.Agent.Module", $$Module);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("loadLogging", $$T_Bool, true, "wh");
    po.addFld("loadLoggingRuntimeControl", $$T_Bool, true, "wh");
    po.addFld("loadLoggerSize", Proto.Elm.newCNum("(xdc_SizeT)"), 512L, "wh");
    po.addFld("loadLoggerBufferSection", $$T_Str, "[Default]", "wh");
    po.addFld("mainLogging", $$T_Bool, true, "wh");
    po.addFld("mainLoggingRuntimeControl", $$T_Bool, true, "wh");
    po.addFld("mainLoggerSize", Proto.Elm.newCNum("(xdc_SizeT)"), 1024L, "wh");
    po.addFld("mainLoggerBufferSection", $$T_Str, "[Default]", "wh");
    po.addFld("sysbiosHwiLogging", $$T_Bool, false, "wh");
    po.addFld("sysbiosHwiLoggingRuntimeControl", $$T_Bool, false, "wh");
    po.addFld("sysbiosSwiLogging", $$T_Bool, false, "wh");
    po.addFld("sysbiosSwiLoggingRuntimeControl", $$T_Bool, false, "wh");
    po.addFld("sysbiosTaskLogging", $$T_Bool, true, "wh");
    po.addFld("sysbiosTaskLoggingRuntimeControl", $$T_Bool, true, "wh");
    po.addFld("sysbiosLoggerSize", Proto.Elm.newCNum("(xdc_SizeT)"), 4096L, "wh");
    po.addFld("sysbiosLoggerBufferSection", $$T_Str, "[Default]", "wh");
    po.addFld("configureSystemLog", $$T_Bool, true, "wh");
    po.addFld("numSystemRecords", Proto.Elm.newCNum("(xdc_Int)"), 64L, "wh");
    po.addFld("configureLoadLog", $$T_Bool, true, "wh");
    po.addFld("numLoadRecords", Proto.Elm.newCNum("(xdc_Int)"), 64L, "wh");
    po.addFld("periodInMs", Proto.Elm.newCNum("(xdc_Int)"), 100L, "wh");
    po.addFld("priority", Proto.Elm.newCNum("(xdc_Int)"), 1L, "wh");
    po.addFld("agentStackSize", Proto.Elm.newCNum("(xdc_SizeT)"), 1024L, "wh");
    po.addFld("agentStackSection", $$T_Str, "[Default]", "wh");
    po.addFld("transferBufferSize", Proto.Elm.newCNum("(xdc_Int)"), 85L, "wh");
    po.addFld("transferBufferSection", $$T_Str, $$UNDEF, "wh");
    po.addFld("addSupportLogger", $$T_Bool, true, "wh");
    po.addFld("supportControl", $$T_Bool, true, "wh");
    po.addFld(
        "transport",
        (Proto) om.findStrict("ti.sysbios.rta.Agent.Transport", "ti.sysbios.rta"),
        om.find("ti.sysbios.rta.Agent.Transport_STOP_MODE_ONLY"),
        "wh");
    po.addFld("dataStream", $$T_Str, "/rtdx0", "wh");
    po.addFld("commandStream", $$T_Str, "/rtdx1", "wh");
    po.addFld("responseStream", $$T_Str, "/rtdx1", "wh");
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("ti.sysbios.rta.Agent$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("ti.sysbios.rta.Agent$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("ti.sysbios.rta.Agent$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
  }

  void SupportLogger$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "ti/sysbios/rta/SupportLogger.xs");
    om.bind("ti.sysbios.rta.SupportLogger$$capsule", cap);
    po = (Proto.Obj) om.findStrict("ti.sysbios.rta.SupportLogger.Module", "ti.sysbios.rta");
    po.init(
        "ti.sysbios.rta.SupportLogger.Module",
        om.findStrict("xdc.runtime.IModule.Module", "ti.sysbios.rta"));
    po.addFld("$hostonly", $$T_Num, 0, "r");
    if (isCFG) {
      po.addFld(
          "LM_timestampFreq",
          (Proto) om.findStrict("xdc.runtime.Log$$Event", "ti.sysbios.rta"),
          Global.newObject(
              "mask",
              Global.eval("0x0100 | 0x0200"),
              "msg",
              "LM_timestampFreq: Timestamp Frequency hi: %d, lo: %d"),
          "w");
      po.addFld("createLogSize", Proto.Elm.newCNum("(xdc_Int)"), 32L, "w");
    } // isCFG
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("ti.sysbios.rta.SupportLogger$$module$use", true);
    if (fxn != null) po.addFxn("module$use", $$T_Met, fxn);
    fxn = Global.get(cap, "module$meta$init");
    if (fxn != null) om.bind("ti.sysbios.rta.SupportLogger$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$static$init");
    if (fxn != null) om.bind("ti.sysbios.rta.SupportLogger$$module$static$init", true);
    if (fxn != null) po.addFxn("module$static$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("ti.sysbios.rta.SupportLogger$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
  }

  void Agent$$ROV() {}

  void SupportLogger$$ROV() {
    Proto.Obj po;
    Value.Obj vo;

    vo = (Value.Obj) om.findStrict("ti.sysbios.rta.SupportLogger", "ti.sysbios.rta");
  }

  void $$SINGLETONS() {
    pkgP.init(
        "ti.sysbios.rta.Package",
        (Proto.Obj) om.findStrict("xdc.IPackage.Module", "ti.sysbios.rta"));
    Scriptable cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "ti/sysbios/rta/package.xs");
    om.bind("xdc.IPackage$$capsule", cap);
    Object fxn;
    fxn = Global.get(cap, "init");
    if (fxn != null)
      pkgP.addFxn("init", (Proto.Fxn) om.findStrict("xdc.IPackage$$init", "ti.sysbios.rta"), fxn);
    fxn = Global.get(cap, "close");
    if (fxn != null)
      pkgP.addFxn("close", (Proto.Fxn) om.findStrict("xdc.IPackage$$close", "ti.sysbios.rta"), fxn);
    fxn = Global.get(cap, "validate");
    if (fxn != null)
      pkgP.addFxn(
          "validate", (Proto.Fxn) om.findStrict("xdc.IPackage$$validate", "ti.sysbios.rta"), fxn);
    fxn = Global.get(cap, "exit");
    if (fxn != null)
      pkgP.addFxn("exit", (Proto.Fxn) om.findStrict("xdc.IPackage$$exit", "ti.sysbios.rta"), fxn);
    fxn = Global.get(cap, "getLibs");
    if (fxn != null)
      pkgP.addFxn(
          "getLibs", (Proto.Fxn) om.findStrict("xdc.IPackage$$getLibs", "ti.sysbios.rta"), fxn);
    fxn = Global.get(cap, "getSects");
    if (fxn != null)
      pkgP.addFxn(
          "getSects", (Proto.Fxn) om.findStrict("xdc.IPackage$$getSects", "ti.sysbios.rta"), fxn);
    pkgP.bind("$capsule", cap);
    pkgV.init2(pkgP, "ti.sysbios.rta", Value.DEFAULT, false);
    pkgV.bind("$name", "ti.sysbios.rta");
    pkgV.bind("$category", "Package");
    pkgV.bind("$$qn", "ti.sysbios.rta.");
    pkgV.bind("$vers", Global.newArray("2, 0, 0, 0"));
    Value.Map atmap = (Value.Map) pkgV.getv("$attr");
    atmap.seal("length");
    imports.clear();
    pkgV.bind("$imports", imports);
    StringBuilder sb = new StringBuilder();
    sb.append("var pkg = xdc.om['ti.sysbios.rta'];\n");
    sb.append("if (pkg.$vers.length >= 3) {\n");
    sb.append("pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..'));\n");
    sb.append("}\n");
    sb.append("pkg.build.libraries = [\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.a28L',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.a28FP',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.a64',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.a64P',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.a64Pe',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.a674',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.a430',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.a430X',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.a430XS',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae430X',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae430XS',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.ar430XS',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae64P',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae64Pe',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae674',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae64T',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae66',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae66e',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.aearp32',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.aearp32F',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae9',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.aea8f',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.aea8fnv',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.aem3',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.aem4',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.aem4f',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.aer4te',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.aer4fte',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.am3g',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.am4g',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.am4fg',\n");
    sb.append("'lib/sysbios/debug/ti.sysbios.rta.aa15g',\n");
    sb.append("'lib/smpbios/debug/ti.sysbios.rta.aem3',\n");
    sb.append("'lib/smpbios/debug/ti.sysbios.rta.aem4',\n");
    sb.append("];\n");
    sb.append("pkg.build.libDesc = [\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.a28L', {target: 'ti.targets.C28_large', suffix: '28L'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.a28FP', {target: 'ti.targets.C28_float', suffix: '28FP'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.a64', {target: 'ti.targets.C64', suffix: '64'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.a64P', {target: 'ti.targets.C64P', suffix: '64P'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.a64Pe', {target: 'ti.targets.C64P_big_endian', suffix: '64Pe'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.a674', {target: 'ti.targets.C674', suffix: '674'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.a430', {target: 'ti.targets.msp430.MSP430', suffix: '430'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.a430X', {target: 'ti.targets.msp430.MSP430X', suffix: '430X'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.a430XS', {target: 'ti.targets.msp430.MSP430X_small', suffix: '430XS'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.ae430X', {target: 'ti.targets.msp430.elf.MSP430X', suffix: 'e430X'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.ae430XS', {target: 'ti.targets.msp430.elf.MSP430X_small', suffix: 'e430XS'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.ar430XS', {target: 'iar.targets.msp430.MSP430X_small', suffix: 'r430XS'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.ae64P', {target: 'ti.targets.elf.C64P', suffix: 'e64P'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.ae64Pe', {target: 'ti.targets.elf.C64P_big_endian', suffix: 'e64Pe'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.ae674', {target: 'ti.targets.elf.C674', suffix: 'e674'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.ae64T', {target: 'ti.targets.elf.C64T', suffix: 'e64T'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.ae66', {target: 'ti.targets.elf.C66', suffix: 'e66'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.ae66e', {target: 'ti.targets.elf.C66_big_endian', suffix: 'e66e'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.aearp32', {target: 'ti.targets.arp32.elf.ARP32', suffix: 'earp32'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.aearp32F', {target: 'ti.targets.arp32.elf.ARP32_far', suffix: 'earp32F'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.ae9', {target: 'ti.targets.arm.elf.Arm9', suffix: 'e9'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.aea8f', {target: 'ti.targets.arm.elf.A8F', suffix: 'ea8f'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.aea8fnv', {target: 'ti.targets.arm.elf.A8Fnv', suffix: 'ea8fnv'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.aem3', {target: 'ti.targets.arm.elf.M3', suffix: 'em3'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.aem4', {target: 'ti.targets.arm.elf.M4', suffix: 'em4'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.aem4f', {target: 'ti.targets.arm.elf.M4F', suffix: 'em4f'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.aer4te', {target: 'ti.targets.arm.elf.R4t_big_endian', suffix: 'er4te'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.aer4fte', {target: 'ti.targets.arm.elf.R4Ft_big_endian', suffix: 'er4fte'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.am3g', {target: 'gnu.targets.arm.M3', suffix: 'm3g'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.am4g', {target: 'gnu.targets.arm.M4', suffix: 'm4g'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.am4fg', {target: 'gnu.targets.arm.M4F', suffix: 'm4fg'}],\n");
    sb.append(
        "['lib/sysbios/debug/ti.sysbios.rta.aa15g', {target: 'gnu.targets.arm.A15', suffix: 'a15g'}],\n");
    sb.append(
        "['lib/smpbios/debug/ti.sysbios.rta.aem3', {target: 'ti.targets.arm.elf.M3', suffix: 'em3'}],\n");
    sb.append(
        "['lib/smpbios/debug/ti.sysbios.rta.aem4', {target: 'ti.targets.arm.elf.M4', suffix: 'em4'}],\n");
    sb.append("];\n");
    Global.eval(sb.toString());
  }

  void Agent$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo = (Value.Obj) om.findStrict("ti.sysbios.rta.Agent", "ti.sysbios.rta");
    po = (Proto.Obj) om.findStrict("ti.sysbios.rta.Agent.Module", "ti.sysbios.rta");
    vo.init2(po, "ti.sysbios.rta.Agent", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Module");
    vo.bind("$capsule", om.findStrict("ti.sysbios.rta.Agent$$capsule", "ti.sysbios.rta"));
    vo.bind("$package", om.findStrict("ti.sysbios.rta", "ti.sysbios.rta"));
    tdefs.clear();
    proxies.clear();
    mcfgs.clear();
    icfgs.clear();
    inherits.clear();
    vo.bind("Transport", om.findStrict("ti.sysbios.rta.Agent.Transport", "ti.sysbios.rta"));
    vo.bind(
        "Transport_RTDX", om.findStrict("ti.sysbios.rta.Agent.Transport_RTDX", "ti.sysbios.rta"));
    vo.bind(
        "Transport_STOP_MODE_ONLY",
        om.findStrict("ti.sysbios.rta.Agent.Transport_STOP_MODE_ONLY", "ti.sysbios.rta"));
    vo.bind(
        "Transport_USER", om.findStrict("ti.sysbios.rta.Agent.Transport_USER", "ti.sysbios.rta"));
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray()));
    vo.bind("$$icfgs", Global.newArray(icfgs.toArray()));
    vo.bind("$$inherits", Global.newArray(inherits.toArray()));
    ((Value.Arr) pkgV.getv("$modules")).add(vo);
    ((Value.Arr) om.findStrict("$modules", "ti.sysbios.rta")).add(vo);
    vo.bind("$$instflag", 0);
    vo.bind("$$iobjflag", 1);
    vo.bind("$$sizeflag", 1);
    vo.bind("$$dlgflag", 0);
    vo.bind("$$iflag", 0);
    vo.bind("$$romcfgs", "|");
    vo.bind("$$nortsflag", 0);
    Proto.Str ps = (Proto.Str) vo.find("Module_State");
    if (ps != null) vo.bind("$object", ps.newInstance());
    vo.bind("$$meta_iobj", om.has("ti.sysbios.rta.Agent$$instance$static$init", null) ? 1 : 0);
    vo.bind("$$fxntab", Global.newArray());
    vo.bind("$$logEvtCfgs", Global.newArray());
    vo.bind("$$errorDescCfgs", Global.newArray());
    vo.bind("$$assertDescCfgs", Global.newArray());
    Value.Map atmap = (Value.Map) vo.getv("$attr");
    atmap.seal("length");
    pkgV.bind("Agent", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("Agent");
  }

  void SupportLogger$$SINGLETONS() {
    Proto.Obj po;
    Value.Obj vo;

    vo = (Value.Obj) om.findStrict("ti.sysbios.rta.SupportLogger", "ti.sysbios.rta");
    po = (Proto.Obj) om.findStrict("ti.sysbios.rta.SupportLogger.Module", "ti.sysbios.rta");
    vo.init2(po, "ti.sysbios.rta.SupportLogger", $$DEFAULT, false);
    vo.bind("Module", po);
    vo.bind("$category", "Module");
    vo.bind("$capsule", om.findStrict("ti.sysbios.rta.SupportLogger$$capsule", "ti.sysbios.rta"));
    vo.bind("$package", om.findStrict("ti.sysbios.rta", "ti.sysbios.rta"));
    tdefs.clear();
    proxies.clear();
    mcfgs.clear();
    icfgs.clear();
    inherits.clear();
    mcfgs.add("Module__diagsEnabled");
    icfgs.add("Module__diagsEnabled");
    mcfgs.add("Module__diagsIncluded");
    icfgs.add("Module__diagsIncluded");
    mcfgs.add("Module__diagsMask");
    icfgs.add("Module__diagsMask");
    mcfgs.add("Module__gateObj");
    icfgs.add("Module__gateObj");
    mcfgs.add("Module__gatePrms");
    icfgs.add("Module__gatePrms");
    mcfgs.add("Module__id");
    icfgs.add("Module__id");
    mcfgs.add("Module__loggerDefined");
    icfgs.add("Module__loggerDefined");
    mcfgs.add("Module__loggerObj");
    icfgs.add("Module__loggerObj");
    mcfgs.add("Module__loggerFxn0");
    icfgs.add("Module__loggerFxn0");
    mcfgs.add("Module__loggerFxn1");
    icfgs.add("Module__loggerFxn1");
    mcfgs.add("Module__loggerFxn2");
    icfgs.add("Module__loggerFxn2");
    mcfgs.add("Module__loggerFxn4");
    icfgs.add("Module__loggerFxn4");
    mcfgs.add("Module__loggerFxn8");
    icfgs.add("Module__loggerFxn8");
    mcfgs.add("Module__startupDoneFxn");
    icfgs.add("Module__startupDoneFxn");
    mcfgs.add("Object__count");
    icfgs.add("Object__count");
    mcfgs.add("Object__heap");
    icfgs.add("Object__heap");
    mcfgs.add("Object__sizeof");
    icfgs.add("Object__sizeof");
    mcfgs.add("Object__table");
    icfgs.add("Object__table");
    mcfgs.add("LM_timestampFreq");
    mcfgs.add("createLogSize");
    vo.bind("$$tdefs", Global.newArray(tdefs.toArray()));
    vo.bind("$$proxies", Global.newArray(proxies.toArray()));
    vo.bind("$$mcfgs", Global.newArray(mcfgs.toArray()));
    vo.bind("$$icfgs", Global.newArray(icfgs.toArray()));
    inherits.add("xdc.runtime");
    vo.bind("$$inherits", Global.newArray(inherits.toArray()));
    ((Value.Arr) pkgV.getv("$modules")).add(vo);
    ((Value.Arr) om.findStrict("$modules", "ti.sysbios.rta")).add(vo);
    vo.bind("$$instflag", 0);
    vo.bind("$$iobjflag", 0);
    vo.bind("$$sizeflag", 1);
    vo.bind("$$dlgflag", 0);
    vo.bind("$$iflag", 0);
    vo.bind("$$romcfgs", "|");
    vo.bind("$$nortsflag", 0);
    if (isCFG) {
      Proto.Str ps = (Proto.Str) vo.find("Module_State");
      if (ps != null) vo.bind("$object", ps.newInstance());
      vo.bind("$$meta_iobj", 1);
    } // isCFG
    vo.bind("$$fxntab", Global.newArray("ti_sysbios_rta_SupportLogger_Module__startupDone__E"));
    vo.bind("$$logEvtCfgs", Global.newArray("LM_timestampFreq"));
    vo.bind("$$errorDescCfgs", Global.newArray());
    vo.bind("$$assertDescCfgs", Global.newArray());
    Value.Map atmap = (Value.Map) vo.getv("$attr");
    atmap.setElem("", true);
    atmap.seal("length");
    vo.bind("MODULE_STARTUP$", 1);
    vo.bind("PROXY$", 0);
    loggables.clear();
    vo.bind("$$loggables", loggables.toArray());
    pkgV.bind("SupportLogger", vo);
    ((Value.Arr) pkgV.getv("$unitNames")).add("SupportLogger");
  }

  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn(
        "module$meta$init", (Scriptable) om.findStrict("ti.sysbios.rta.Agent", "ti.sysbios.rta"));
    Global.callFxn(
        "module$meta$init",
        (Scriptable) om.findStrict("ti.sysbios.rta.SupportLogger", "ti.sysbios.rta"));
    Global.callFxn("init", pkgV);
    ((Value.Obj) om.getv("ti.sysbios.rta.Agent")).bless();
    ((Value.Obj) om.getv("ti.sysbios.rta.SupportLogger")).bless();
    ((Value.Arr) om.findStrict("$packages", "ti.sysbios.rta")).add(pkgV);
  }

  public void exec(Scriptable xdcO, Session ses) {
    this.xdcO = xdcO;
    this.ses = ses;
    om = (Value.Obj) xdcO.get("om", null);

    Object o = om.geto("$name");
    String s = o instanceof String ? (String) o : null;
    isCFG = s != null && s.equals("cfg");
    isROV = s != null && s.equals("rov");

    $$IMPORTS();
    $$OBJECTS();
    Agent$$OBJECTS();
    SupportLogger$$OBJECTS();
    Agent$$CONSTS();
    SupportLogger$$CONSTS();
    Agent$$CREATES();
    SupportLogger$$CREATES();
    Agent$$FUNCTIONS();
    SupportLogger$$FUNCTIONS();
    Agent$$SIZES();
    SupportLogger$$SIZES();
    Agent$$TYPES();
    SupportLogger$$TYPES();
    if (isROV) {
      Agent$$ROV();
      SupportLogger$$ROV();
    } // isROV
    $$SINGLETONS();
    Agent$$SINGLETONS();
    SupportLogger$$SINGLETONS();
    $$INITIALIZATION();
  }
}