Authors: Reinhard Grafl EMAIL: cacao@complang.tuwien.ac.at
Changes: Andi Krall EMAIL: cacao@complang.tuwien.ac.at
Mark Probst EMAIL: cacao@complang.tuwien.ac.at
+ Philipp Tomsich EMAIL: cacao@complang.tuwien.ac.at
- Last Change: 1997/10/29
+ Last Change: $Id: main.c 123 1999-01-28 19:48:49Z phil $
*******************************************************************************/
printf (" -time ................ measure the runtime\n");
printf (" -stat ................ detailed compiler statistics\n");
printf (" -log logfile ......... specify a name for the logfile\n");
- printf (" -c(heck) b(ounds...... don't check array bounds\n");
- printf (" s(ync) ...... don't check for synchronization\n");
+ printf (" -c(heck)b(ounds) ..... don't check array bounds\n");
+ printf (" s(ync) ....... don't check for synchronization\n");
printf (" -l ................... don't start the class after loading\n");
printf (" -all ................. compile all methods, no execution\n");
#ifdef OLD_COMPILER
printf (" -old ................. use old JIT compiler\n");
#endif
-#ifdef NEW_GC
+#if 0
printf (" -gc1 ................. use the old garbage collector (default)\n");
printf (" -gc2 ................. use the new garbage collector\n");
#endif
printf (" -m ................... compile only a specific method\n");
printf (" -sig ................. specify signature for a specific method\n");
- printf (" -s(how)m(ethods) ..... show all methods&fields of a class\n");
- printf (" a(ssembler) ... show disassembled listing\n");
+ printf (" -s(how)a(ssembler) ... show disassembled listing\n");
printf (" c(onstants) ... show the constant pool\n");
printf (" d(atasegment).. show data segment listing\n");
printf (" i(ntermediate). show intermediate representation\n");
loader_close ();
unicode_close ( literalstring_free );
-
if (verbose || getcompilingtime || statistics) {
log_text ("CACAO terminated");
if (statistics)
#ifndef USE_THREADS
stackbottom = &dummy;
#endif
-
+
if (0 != atexit(exit_handler))
panic("unable to register exit_handler");
printf ("\n");
}
+#ifdef USE_THREADS
killThread(currentThread);
+#endif
fprintf(stderr, "still here\n");
}