System.err.println("unrecognized command line argument: " + args[i]);
if (args[i].equals("-out")) { if (++i == args.length) { System.err.println("Error: The -out flag requires an argument"); System.exit(-1); } outFileName = args[i]; continue; } System.err.println("Error: unrecognized command line argument: " + args[i]);
  public static void main (String args[]) throws Exception {    int bootImageAddress = 0;    // Process command line directives.    //    for (int i = 0, n = args.length; i < n; ++i) {      if (args[i].equals("-ia")) {              // image address        bootImageAddress = Integer.decode(args[++i]).intValue();        continue;      }      System.err.println("unrecognized command line argument: " + args[i]);      System.exit(-1);    }    if (bootImageAddress == 0) {      System.err.println("Error: Must specify boot image load address.");      System.exit(-1);    }    VM.initForTool();    System.out.print("/*------ MACHINE GENERATED by ");    System.out.print("GenerateInterfaceDeclarations.java: DO NOT EDIT");    System.out.print("------*/\n\n");    System.out.println("#ifdef NEED_BOOT_RECORD_DECLARATIONS");    System.out.println("#include <inttypes.h>");    if (VM.BuildFor32Addr) {      System.out.println("#define VM_Address uint32_t");      System.out.println("#define JavaObject_t uint32_t");    } else {      System.out.println("#define VM_Address uint64_t");      System.out.println("#define JavaObject_t uint64_t");    }    emitBootRecordDeclarations();    System.out.println("#endif /* NEED_BOOT_RECORD_DECLARATIONS */");    System.out.println();    System.out.println("#ifdef NEED_BOOT_RECORD_INITIALIZATION");    emitBootRecordInitialization();    System.out.println("#endif /* NEED_BOOT_RECORD_INITIALIZATION */");    System.out.println();    System.out.println("#ifdef NEED_GNU_CLASSPATH_VERSION");    // version of the classpath library from gnu.classpath.configuration    System.out.print("static const char*classpath_version                        = \""		     + gnu.classpath.Configuration.CLASSPATH_VERSION +"\";\n");    System.out.println("#endif /* NEED_GNU_CLASSPATH_VERSION */");    System.out.println();    System.out.println("#ifdef NEED_VIRTUAL_MACHINE_DECLARATIONS");    emitVirtualMachineDeclarations(bootImageAddress);    System.out.println("#endif /* NEED_VIRTUAL_MACHINE_DECLARATIONS */");    System.out.println();    System.out.println("#ifdef NEED_ASSEMBLER_DECLARATIONS");    emitAssemblerDeclarations();    System.out.println("#endif /* NEED_ASSEMBLER_DECLARATIONS */");  }