- Calling the class loader
- Running the main method
- $Id: cacao.c 2550 2005-06-06 14:44:06Z twisti $
+ $Id: cacao.c 2798 2005-06-23 09:52:06Z twisti $
*/
#include "vm/initialize.h"
#include "vm/loader.h"
#include "vm/options.h"
+#include "vm/signallocal.h"
#include "vm/statistics.h"
#include "vm/stringlocal.h"
#include "vm/tables.h"
printf(" d(atasegment).. show data segment listing\n");
printf(" i(ntermediate). show intermediate representation\n");
printf(" m(ethods)...... show class fields and methods\n");
+ printf(" n(ative)....... show disassembled native stubs\n");
printf(" u(tf) ......... show the utf - hash\n");
printf(" -i n ............. activate inlining\n");
printf(" v ............. inline virtual methods\n");
case 'm':
showmethods = true;
break;
+ case 'n':
+ opt_shownativestub = true;
+ break;
case 'u':
showutf = true;
break;
/* install architecture dependent signal handler used for exceptions */
- init_exceptions();
+ signal_init();
/* initialize the codegen sub systems */
/* load the main class */
- if (!load_class_from_sysloader(utf_new_char(mainstring),&mainclass))
+ if (!(mainclass = load_class_from_sysloader(utf_new_char(mainstring))))
throw_main_exception_exit();
/* error loading class, clear exceptionptr for new exception */
methodinfo *m;
/* create, load and link the main class */
- if (!load_class_bootstrap(utf_new_char(mainstring), &mainclass))
+
+ if (!(mainclass = load_class_bootstrap(utf_new_char(mainstring))))
throw_main_exception_exit();
if (!link_class(mainclass))