gc.interceptExit = true;
gc.sharingHint = true;
CompilationUnit cu = CompilationUnit.setupCompilationUnit(gc.mainThread, cuType, true);
CodeRef entryRef = null;
if (cu.entryQbid() >= 0) entryRef = cu.lookupCodeRef(cu.entryQbid());
if (entryRef == null)
throw new RuntimeException("This class is not an entry point");
Ops.invokeMain(gc.mainThread, entryRef, cuType.getName(), argv);
}
else {