" -A\t\t\tStrict ANSI mode\n"
" -Cl\t\t\tMake local variables static\n"
" -Dsym[=defn]\t\tDefine a symbol\n"
- " -I path\t\tSet an include directory search path\n"
+ " -I dir\t\tSet an include directory search path\n"
" -O\t\t\tOptimize code\n"
" -Oi\t\t\tOptimize code, inline more code\n"
" -Or\t\t\tEnable register variables\n"
"Long options:\n"
" --ansi\t\tStrict ANSI mode\n"
" --cpu type\t\tSet cpu type\n"
+ " --debug\t\tDebug mode\n"
" --debug-info\t\tAdd debug info to object file\n"
" --help\t\tHelp (this text)\n"
" --include-dir dir\tSet an include directory search path\n"
+static void OptDebug (const char* Opt, const char* Arg)
+/* Compiler debug mode */
+{
+ Debug = 1;
+}
+
+
+
static void OptDebugInfo (const char* Opt, const char* Arg)
/* Add debug info to the object file */
{
{ "--add-source", 0, OptAddSource },
{ "--ansi", 0, OptAnsi },
{ "--cpu", 1, OptCPU },
+ { "--debug", 0, OptDebug },
{ "--debug-info", 0, OptDebugInfo },
{ "--help", 0, OptHelp },
{ "--include-dir", 1, OptIncludeDir },
case '-':
LongOption (&I, OptTab, sizeof(OptTab)/sizeof(OptTab[0]));
- break;
+ break;
- case 'd': /* debug mode */
- Debug = 1;
+ case 'd':
+ OptDebug (Arg, 0);
break;
case 'h':