buf = new StringBuffer("cd \""); buf.append(MiscUtilities.getParentOfPath(SourceFile)); buf.append("\""); buf.toString(); buf = new StringBuffer("\""); buf.append(CompilerExecutable); buf.append("\" "); switch(OperatingMode) { case "show_ver": buf.append("+V"); break; case "show_devs": buf.append("+Q"); break; case "show_help": buf.append("+?"); break; case "setup": buf.append("+SETUP"); break; default: // "compile" switch(ProcessorType) { case "pcb": buf.append("+FB "); break; case "pch": buf.append("+FH "); break; case "sxc": buf.append("+FS "); break; default: // "pcm" buf.append("+FM "); break; } if (OldErrFile) buf.append("+EO "); else buf.append("+ES "); if (noPJT) buf.append("-J "); else buf.append("+J "); switch(DebugFile) { case "coff_format": buf.append("+DF "); break; case "map_format": buf.append("+DM "); break; case "standard": buf.append("+DS "); break; case "none": buf.append("-D "); break; default: // "expanded" buf.append("+DC "); break; } buf.append("+Y"); buf.append(OptimizationLevel); buf.append(" "); if (CreateTree) buf.append("+T "); else buf.append("-T "); if (CreateStats) buf.append("+A "); else buf.append("-A "); if (NoSym) buf.append("-M "); else buf.append("+M "); switch(ListFile) { case "old_mpasm": buf.append("+LOlst "); break; case "mpasm": buf.append("+LSlst "); break; case "symbolic": buf.append("+LYlst "); break; case "none": buf.append("-L "); break; default: // "normal" buf.append("+LNlst "); break; } switch(OutFile) { case "binary": buf.append("+OBhex "); break; case "intel16": buf.append("+OWhex "); break; case "none": buf.append("-O "); break; default: // "intel8" buf.append("+O8hex "); break; } switch(StatusWindow) { case "always": buf.append("+P "); break; case "no_errors": buf.append("+PN "); break; case "errors": buf.append("+PE "); break; case "5second": buf.append("+P05 "); break; case "10second": buf.append("+P10 "); break; case "15second": buf.append("+P15 "); break; case "30second": buf.append("+P30 "); break; default: // "close" buf.append("-P "); break; } if (KeepTempFiles) buf.append("+Z "); else buf.append("-Z "); switch(ErrWarnMsgs) { case "all": buf.append("+EA "); break; case "no_warn": buf.append("+EA "); buf.append("-EW "); break; case "first_err_only": buf.append("-E "); break; case "show_warn": buf.append("+EW "); break; default: // "default" } if (ErrorsToStdout) buf.append("+STDOUT "); if (UseICD) buf.append("+ICD "); if (!AdditionalOptions.equals("")) { buf.append(AdditionalOptions); buf.append(" "); } buf.append(MiscUtilities.getFileName(SourceFile)); } buf.toString();