static void Usage (void)
/* Print usage information and exit */
{
- fprintf (stderr,
- "Usage: %s <operation> lib file|module ...\n"
- "Operation is one of:\n"
- "\ta\tAdd modules\n"
- "\td\tDelete modules\n"
- "\tl\tList library contents\n"
- "\tx\tExtract modules\n"
- "\tV\tPrint the archiver version\n",
- ProgName);
+ printf ("Usage: %s <operation> lib file|module ...\n"
+ "Operation is one of:\n"
+ "\ta\tAdd modules\n"
+ "\td\tDelete modules\n"
+ "\tl\tList library contents\n"
+ "\tx\tExtract modules\n"
+ "\tV\tPrint the archiver version\n",
+ ProgName);
exit (EXIT_FAILURE);
}
static void Usage (void)
/* Print usage information and exit */
{
- fprintf (stderr,
- "Usage: %s [options] file\n"
- "Short options:\n"
- " -D name[=value]\tDefine a symbol\n"
- " -I dir\t\tSet an include directory search path\n"
- " -U\t\t\tMark unresolved symbols as import\n"
- " -V\t\t\tPrint the assembler version\n"
- " -W n\t\t\tSet warning level n\n"
- " -g\t\t\tAdd debug info to object file\n"
- " -h\t\t\tHelp (this text)\n"
- " -i\t\t\tIgnore case of symbols\n"
- " -l\t\t\tCreate a listing if assembly was ok\n"
- " -mm model\t\tSet the memory model\n"
- " -o name\t\tName the output file\n"
- " -s\t\t\tEnable smart mode\n"
- " -t sys\t\tSet the target system\n"
- " -v\t\t\tIncrease verbosity\n"
- "\n"
- "Long options:\n"
- " --auto-import\t\tMark unresolved symbols as import\n"
- " --cpu type\t\tSet cpu type\n"
- " --debug-info\t\tAdd debug info to object file\n"
- " --feature name\tSet an emulation feature\n"
- " --help\t\tHelp (this text)\n"
- " --ignore-case\t\tIgnore case of symbols\n"
- " --include-dir dir\tSet an include directory search path\n"
- " --listing\t\tCreate a listing if assembly was ok\n"
- " --list-bytes n\tMaximum number of bytes per listing line\n"
- " --memory-model model\tSet the memory model\n"
- " --pagelength n\tSet the page length for the listing\n"
- " --smart\t\tEnable smart mode\n"
- " --target sys\t\tSet the target system\n"
- " --verbose\t\tIncrease verbosity\n"
- " --version\t\tPrint the assembler version\n",
- ProgName);
+ printf ("Usage: %s [options] file\n"
+ "Short options:\n"
+ " -D name[=value]\tDefine a symbol\n"
+ " -I dir\t\tSet an include directory search path\n"
+ " -U\t\t\tMark unresolved symbols as import\n"
+ " -V\t\t\tPrint the assembler version\n"
+ " -W n\t\t\tSet warning level n\n"
+ " -g\t\t\tAdd debug info to object file\n"
+ " -h\t\t\tHelp (this text)\n"
+ " -i\t\t\tIgnore case of symbols\n"
+ " -l\t\t\tCreate a listing if assembly was ok\n"
+ " -mm model\t\tSet the memory model\n"
+ " -o name\t\tName the output file\n"
+ " -s\t\t\tEnable smart mode\n"
+ " -t sys\t\tSet the target system\n"
+ " -v\t\t\tIncrease verbosity\n"
+ "\n"
+ "Long options:\n"
+ " --auto-import\t\tMark unresolved symbols as import\n"
+ " --cpu type\t\tSet cpu type\n"
+ " --debug-info\t\tAdd debug info to object file\n"
+ " --feature name\tSet an emulation feature\n"
+ " --help\t\tHelp (this text)\n"
+ " --ignore-case\t\tIgnore case of symbols\n"
+ " --include-dir dir\tSet an include directory search path\n"
+ " --listing\t\tCreate a listing if assembly was ok\n"
+ " --list-bytes n\tMaximum number of bytes per listing line\n"
+ " --memory-model model\tSet the memory model\n"
+ " --pagelength n\tSet the page length for the listing\n"
+ " --smart\t\tEnable smart mode\n"
+ " --target sys\t\tSet the target system\n"
+ " --verbose\t\tIncrease verbosity\n"
+ " --version\t\tPrint the assembler version\n",
+ ProgName);
}
static void Usage (void)
/* Print usage information to stderr */
{
- fprintf (stderr,
- "Usage: %s [options] file\n"
- "Short options:\n"
- " -Cl\t\t\tMake local variables static\n"
- " -Dsym[=defn]\t\tDefine a symbol\n"
- " -E\t\t\tStop after the preprocessing stage\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"
- " -Os\t\t\tInline some known functions\n"
- " -T\t\t\tInclude source as comment\n"
- " -V\t\t\tPrint the compiler version number\n"
- " -W\t\t\tSuppress warnings\n"
- " -d\t\t\tDebug mode\n"
- " -g\t\t\tAdd debug info to object file\n"
- " -h\t\t\tHelp (this text)\n"
- " -j\t\t\tDefault characters are signed\n"
- " -mm model\t\tSet the memory model\n"
- " -o name\t\tName the output file\n"
- " -r\t\t\tEnable register variables\n"
- " -t sys\t\tSet the target system\n"
- " -v\t\t\tIncrease verbosity\n"
- "\n"
- "Long options:\n"
- " --add-source\t\tInclude source as comment\n"
- " --bss-name seg\tSet the name of the BSS segment\n"
- " --check-stack\t\tGenerate stack overflow checks\n"
- " --code-name seg\tSet the name of the CODE segment\n"
- " --codesize x\t\tAccept larger code by factor x\n"
- " --cpu type\t\tSet cpu type (6502, 65c02)\n"
- " --create-dep\t\tCreate a make dependency file\n"
- " --data-name seg\tSet the name of the DATA segment\n"
- " --debug\t\tDebug mode\n"
- " --debug-info\t\tAdd debug info to object file\n"
- " --debug-opt name\tDebug optimization steps\n"
- " --disable-opt name\tDisable an optimization step\n"
- " --enable-opt name\tEnable an optimization step\n"
- " --forget-inc-paths\tForget include search paths\n"
- " --help\t\tHelp (this text)\n"
- " --include-dir dir\tSet an include directory search path\n"
- " --list-opt-steps\tList all optimizer steps and exit\n"
- " --memory-model model\tSet the memory model\n"
- " --register-space b\tSet space available for register variables\n"
- " --register-vars\tEnable register variables\n"
- " --rodata-name seg\tSet the name of the RODATA segment\n"
- " --signed-chars\tDefault characters are signed\n"
- " --standard std\tLanguage standard (c89, c99, cc65)\n"
- " --static-locals\tMake local variables static\n"
- " --target sys\t\tSet the target system\n"
- " --verbose\t\tIncrease verbosity\n"
- " --version\t\tPrint the compiler version number\n"
- " --writable-strings\tMake string literals writable\n",
- ProgName);
+ printf ("Usage: %s [options] file\n"
+ "Short options:\n"
+ " -Cl\t\t\tMake local variables static\n"
+ " -Dsym[=defn]\t\tDefine a symbol\n"
+ " -E\t\t\tStop after the preprocessing stage\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"
+ " -Os\t\t\tInline some known functions\n"
+ " -T\t\t\tInclude source as comment\n"
+ " -V\t\t\tPrint the compiler version number\n"
+ " -W\t\t\tSuppress warnings\n"
+ " -d\t\t\tDebug mode\n"
+ " -g\t\t\tAdd debug info to object file\n"
+ " -h\t\t\tHelp (this text)\n"
+ " -j\t\t\tDefault characters are signed\n"
+ " -mm model\t\tSet the memory model\n"
+ " -o name\t\tName the output file\n"
+ " -r\t\t\tEnable register variables\n"
+ " -t sys\t\tSet the target system\n"
+ " -v\t\t\tIncrease verbosity\n"
+ "\n"
+ "Long options:\n"
+ " --add-source\t\tInclude source as comment\n"
+ " --bss-name seg\tSet the name of the BSS segment\n"
+ " --check-stack\t\tGenerate stack overflow checks\n"
+ " --code-name seg\tSet the name of the CODE segment\n"
+ " --codesize x\t\tAccept larger code by factor x\n"
+ " --cpu type\t\tSet cpu type (6502, 65c02)\n"
+ " --create-dep\t\tCreate a make dependency file\n"
+ " --data-name seg\tSet the name of the DATA segment\n"
+ " --debug\t\tDebug mode\n"
+ " --debug-info\t\tAdd debug info to object file\n"
+ " --debug-opt name\tDebug optimization steps\n"
+ " --disable-opt name\tDisable an optimization step\n"
+ " --enable-opt name\tEnable an optimization step\n"
+ " --forget-inc-paths\tForget include search paths\n"
+ " --help\t\tHelp (this text)\n"
+ " --include-dir dir\tSet an include directory search path\n"
+ " --list-opt-steps\tList all optimizer steps and exit\n"
+ " --memory-model model\tSet the memory model\n"
+ " --register-space b\tSet space available for register variables\n"
+ " --register-vars\tEnable register variables\n"
+ " --rodata-name seg\tSet the name of the RODATA segment\n"
+ " --signed-chars\tDefault characters are signed\n"
+ " --standard std\tLanguage standard (c89, c99, cc65)\n"
+ " --static-locals\tMake local variables static\n"
+ " --target sys\t\tSet the target system\n"
+ " --verbose\t\tIncrease verbosity\n"
+ " --version\t\tPrint the compiler version number\n"
+ " --writable-strings\tMake string literals writable\n",
+ ProgName);
}
static void Usage (void)
/* Print usage information and exit */
{
- fprintf (stderr,
- "Usage: %s [options] file [...]\n"
- "Short options:\n"
- " -c\t\t\tCompile and assemble but don't link\n"
- " -d\t\t\tDebug mode\n"
- " -g\t\t\tAdd debug info\n"
- " -h\t\t\tHelp (this text)\n"
- " -l\t\t\tCreate an assembler listing\n"
- " -m name\t\tCreate a map file\n"
- " -mm model\t\tSet the memory model\n"
- " -o name\t\tName the output file\n"
- " -r\t\t\tEnable register variables\n"
- " -t sys\t\tSet the target system\n"
- " -v\t\t\tVerbose mode\n"
- " -vm\t\t\tVerbose map file\n"
- " -C name\t\tUse linker config file\n"
- " -Cl\t\t\tMake local variables static\n"
- " -D sym[=defn]\t\tDefine a preprocessor symbol\n"
- " -I dir\t\tSet a compiler include directory path\n"
- " -L path\t\tSpecify a library search path\n"
- " -Ln name\t\tCreate a VICE label file\n"
- " -O\t\t\tOptimize code\n"
- " -Oi\t\t\tOptimize code, inline functions\n"
- " -Or\t\t\tOptimize code, honour the register keyword\n"
- " -Os\t\t\tOptimize code, inline known C funtions\n"
- " -S\t\t\tCompile but don't assemble and link\n"
- " -T\t\t\tInclude source as comment\n"
- " -V\t\t\tPrint the version number\n"
- " -W\t\t\tSuppress warnings\n"
- "\n"
- "Long options:\n"
- " --add-source\t\tInclude source as comment\n"
- " --asm-define sym[=v]\tDefine an assembler symbol\n"
- " --asm-include-dir dir\tSet an assembler include directory\n"
- " --bss-label name\tDefine and export a BSS segment label\n"
- " --bss-name seg\tSet the name of the BSS segment\n"
- " --cfg-path path\tSpecify a config file search path\n"
- " --check-stack\t\tGenerate stack overflow checks\n"
- " --code-label name\tDefine and export a CODE segment label\n"
- " --code-name seg\tSet the name of the CODE segment\n"
- " --codesize x\t\tAccept larger code by factor x\n"
- " --config name\t\tUse linker config file\n"
- " --cpu type\t\tSet cpu type\n"
- " --create-dep\t\tCreate a make dependency file\n"
- " --data-label name\tDefine and export a DATA segment label\n"
- " --data-name seg\tSet the name of the DATA segment\n"
- " --debug\t\tDebug mode\n"
- " --debug-info\t\tAdd debug info\n"
- " --feature name\tSet an emulation feature\n"
- " --forget-inc-paths\tForget include search paths (compiler)\n"
- " --help\t\tHelp (this text)\n"
- " --include-dir dir\tSet a compiler include directory path\n"
- " --lib file\t\tLink this library\n"
- " --lib-path path\tSpecify a library search path\n"
- " --list-targets\tList all available targets\n"
- " --listing\t\tCreate an assembler listing\n"
- " --list-bytes n\tNumber of bytes per assembler listing line\n"
- " --mapfile name\tCreate a map file\n"
- " --memory-model model\tSet the memory model\n"
- " --module\t\tLink as a module\n"
- " --module-id id\tSpecify a module id for the linker\n"
- " --o65-model model\tOverride the o65 model\n"
- " --obj file\t\tLink this object file\n"
- " --obj-path path\tSpecify an object file search path\n"
- " --register-space b\tSet space available for register variables\n"
- " --register-vars\tEnable register variables\n"
- " --rodata-name seg\tSet the name of the RODATA segment\n"
- " --signed-chars\tDefault characters are signed\n"
- " --standard std\tLanguage standard (c89, c99, cc65)\n"
- " --start-addr addr\tSet the default start address\n"
- " --static-locals\tMake local variables static\n"
- " --target sys\t\tSet the target system\n"
- " --version\t\tPrint the version number\n"
- " --verbose\t\tVerbose mode\n"
- " --zeropage-label name\tDefine and export a ZEROPAGE segment label\n"
- " --zeropage-name seg\tSet the name of the ZEROPAGE segment\n",
- ProgName);
+ printf ("Usage: %s [options] file [...]\n"
+ "Short options:\n"
+ " -c\t\t\tCompile and assemble but don't link\n"
+ " -d\t\t\tDebug mode\n"
+ " -g\t\t\tAdd debug info\n"
+ " -h\t\t\tHelp (this text)\n"
+ " -l\t\t\tCreate an assembler listing\n"
+ " -m name\t\tCreate a map file\n"
+ " -mm model\t\tSet the memory model\n"
+ " -o name\t\tName the output file\n"
+ " -r\t\t\tEnable register variables\n"
+ " -t sys\t\tSet the target system\n"
+ " -v\t\t\tVerbose mode\n"
+ " -vm\t\t\tVerbose map file\n"
+ " -C name\t\tUse linker config file\n"
+ " -Cl\t\t\tMake local variables static\n"
+ " -D sym[=defn]\t\tDefine a preprocessor symbol\n"
+ " -I dir\t\tSet a compiler include directory path\n"
+ " -L path\t\tSpecify a library search path\n"
+ " -Ln name\t\tCreate a VICE label file\n"
+ " -O\t\t\tOptimize code\n"
+ " -Oi\t\t\tOptimize code, inline functions\n"
+ " -Or\t\t\tOptimize code, honour the register keyword\n"
+ " -Os\t\t\tOptimize code, inline known C funtions\n"
+ " -S\t\t\tCompile but don't assemble and link\n"
+ " -T\t\t\tInclude source as comment\n"
+ " -V\t\t\tPrint the version number\n"
+ " -W\t\t\tSuppress warnings\n"
+ "\n"
+ "Long options:\n"
+ " --add-source\t\tInclude source as comment\n"
+ " --asm-define sym[=v]\tDefine an assembler symbol\n"
+ " --asm-include-dir dir\tSet an assembler include directory\n"
+ " --bss-label name\tDefine and export a BSS segment label\n"
+ " --bss-name seg\tSet the name of the BSS segment\n"
+ " --cfg-path path\tSpecify a config file search path\n"
+ " --check-stack\t\tGenerate stack overflow checks\n"
+ " --code-label name\tDefine and export a CODE segment label\n"
+ " --code-name seg\tSet the name of the CODE segment\n"
+ " --codesize x\t\tAccept larger code by factor x\n"
+ " --config name\t\tUse linker config file\n"
+ " --cpu type\t\tSet cpu type\n"
+ " --create-dep\t\tCreate a make dependency file\n"
+ " --data-label name\tDefine and export a DATA segment label\n"
+ " --data-name seg\tSet the name of the DATA segment\n"
+ " --debug\t\tDebug mode\n"
+ " --debug-info\t\tAdd debug info\n"
+ " --feature name\tSet an emulation feature\n"
+ " --forget-inc-paths\tForget include search paths (compiler)\n"
+ " --help\t\tHelp (this text)\n"
+ " --include-dir dir\tSet a compiler include directory path\n"
+ " --lib file\t\tLink this library\n"
+ " --lib-path path\tSpecify a library search path\n"
+ " --list-targets\tList all available targets\n"
+ " --listing\t\tCreate an assembler listing\n"
+ " --list-bytes n\tNumber of bytes per assembler listing line\n"
+ " --mapfile name\tCreate a map file\n"
+ " --memory-model model\tSet the memory model\n"
+ " --module\t\tLink as a module\n"
+ " --module-id id\tSpecify a module id for the linker\n"
+ " --o65-model model\tOverride the o65 model\n"
+ " --obj file\t\tLink this object file\n"
+ " --obj-path path\tSpecify an object file search path\n"
+ " --register-space b\tSet space available for register variables\n"
+ " --register-vars\tEnable register variables\n"
+ " --rodata-name seg\tSet the name of the RODATA segment\n"
+ " --signed-chars\tDefault characters are signed\n"
+ " --standard std\tLanguage standard (c89, c99, cc65)\n"
+ " --start-addr addr\tSet the default start address\n"
+ " --static-locals\tMake local variables static\n"
+ " --target sys\t\tSet the target system\n"
+ " --version\t\tPrint the version number\n"
+ " --verbose\t\tVerbose mode\n"
+ " --zeropage-label name\tDefine and export a ZEROPAGE segment label\n"
+ " --zeropage-name seg\tSet the name of the ZEROPAGE segment\n",
+ ProgName);
}
-static void OptForgetIncPaths (const char* Opt attribute ((unused)),
+static void OptForgetIncPaths (const char* Opt attribute ((unused)),
const char* Arg attribute ((unused)))
/* Forget all currently defined include paths */
{
static void Usage (void)
/* Print usage information and exit */
{
- fprintf (stderr,
- "Usage: %s [options] file\n"
- "Short options:\n"
- " -V\t\t\tPrint the version number\n"
- " -g\t\t\tAdd debug info to object file\n"
- " -h\t\t\tHelp (this text)\n"
- " -m model\t\tOverride the o65 model\n"
- " -n\t\t\tDon't generate an output file\n"
- " -o name\t\tName the output file\n"
- " -v\t\t\tIncrease verbosity\n"
- "\n"
- "Long options:\n"
- " --bss-label name\tDefine and export a BSS segment label\n"
- " --bss-name seg\tSet the name of the BSS segment\n"
- " --code-label name\tDefine and export a CODE segment label\n"
- " --code-name seg\tSet the name of the CODE segment\n"
- " --data-label name\tDefine and export a DATA segment label\n"
- " --data-name seg\tSet the name of the DATA segment\n"
- " --debug-info\t\tAdd debug info to object file\n"
- " --help\t\tHelp (this text)\n"
- " --no-output\t\tDon't generate an output file\n"
- " --o65-model model\tOverride the o65 model\n"
- " --verbose\t\tIncrease verbosity\n"
- " --version\t\tPrint the version number\n"
- " --zeropage-label name\tDefine and export a ZEROPAGE segment label\n"
- " --zeropage-name seg\tSet the name of the ZEROPAGE segment\n",
- ProgName);
+ printf ("Usage: %s [options] file\n"
+ "Short options:\n"
+ " -V\t\t\tPrint the version number\n"
+ " -g\t\t\tAdd debug info to object file\n"
+ " -h\t\t\tHelp (this text)\n"
+ " -m model\t\tOverride the o65 model\n"
+ " -n\t\t\tDon't generate an output file\n"
+ " -o name\t\tName the output file\n"
+ " -v\t\t\tIncrease verbosity\n"
+ "\n"
+ "Long options:\n"
+ " --bss-label name\tDefine and export a BSS segment label\n"
+ " --bss-name seg\tSet the name of the BSS segment\n"
+ " --code-label name\tDefine and export a CODE segment label\n"
+ " --code-name seg\tSet the name of the CODE segment\n"
+ " --data-label name\tDefine and export a DATA segment label\n"
+ " --data-name seg\tSet the name of the DATA segment\n"
+ " --debug-info\t\tAdd debug info to object file\n"
+ " --help\t\tHelp (this text)\n"
+ " --no-output\t\tDon't generate an output file\n"
+ " --o65-model model\tOverride the o65 model\n"
+ " --verbose\t\tIncrease verbosity\n"
+ " --version\t\tPrint the version number\n"
+ " --zeropage-label name\tDefine and export a ZEROPAGE segment label\n"
+ " --zeropage-name seg\tSet the name of the ZEROPAGE segment\n",
+ ProgName);
}
static void Usage (void)
/* Print usage information and exit */
{
- fprintf (stderr,
- "Usage: %s [options] [inputfile]\n"
- "Short options:\n"
- " -g\t\t\tAdd debug info to object file\n"
- " -h\t\t\tHelp (this text)\n"
- " -i name\t\tSpecify an info file\n"
- " -o name\t\tName the output file\n"
- " -v\t\t\tIncrease verbosity\n"
- " -F\t\t\tAdd formfeeds to the output\n"
- " -S addr\t\tSet the start/load address\n"
- " -V\t\t\tPrint the disassembler version\n"
- "\n"
- "Long options:\n"
- " --comments n\t\tSet the comment level for the output\n"
- " --cpu type\t\tSet cpu type\n"
- " --debug-info\t\tAdd debug info to object file\n"
- " --formfeeds\t\tAdd formfeeds to the output\n"
- " --help\t\tHelp (this text)\n"
- " --hexoffs\t\tUse hexadecimal label offsets\n"
- " --info name\t\tSpecify an info file\n"
- " --pagelength n\tSet the page length for the listing\n"
- " --start-addr addr\tSet the start/load address\n"
- " --verbose\t\tIncrease verbosity\n"
- " --version\t\tPrint the disassembler version\n",
- ProgName);
+ printf ("Usage: %s [options] [inputfile]\n"
+ "Short options:\n"
+ " -g\t\t\tAdd debug info to object file\n"
+ " -h\t\t\tHelp (this text)\n"
+ " -i name\t\tSpecify an info file\n"
+ " -o name\t\tName the output file\n"
+ " -v\t\t\tIncrease verbosity\n"
+ " -F\t\t\tAdd formfeeds to the output\n"
+ " -S addr\t\tSet the start/load address\n"
+ " -V\t\t\tPrint the disassembler version\n"
+ "\n"
+ "Long options:\n"
+ " --comments n\t\tSet the comment level for the output\n"
+ " --cpu type\t\tSet cpu type\n"
+ " --debug-info\t\tAdd debug info to object file\n"
+ " --formfeeds\t\tAdd formfeeds to the output\n"
+ " --help\t\tHelp (this text)\n"
+ " --hexoffs\t\tUse hexadecimal label offsets\n"
+ " --info name\t\tSpecify an info file\n"
+ " --pagelength n\tSet the page length for the listing\n"
+ " --start-addr addr\tSet the start/load address\n"
+ " --verbose\t\tIncrease verbosity\n"
+ " --version\t\tPrint the disassembler version\n",
+ ProgName);
}
unsigned char *buffer;
unsigned char vlirtabt[127];
unsigned char vlirtabs[127];
-int i,j,lastarg;
+int i,j,lastarg;
unsigned l;
int bytes;
int blocks,rest;
}
void printUsage (void) {
- fprintf(stderr, "Usage: %s [options] file\n"
- "Options:\n"
- "\t-h, -?\t\tthis help\n"
- "\t-f\t\tforce writting files\n"
- "\t-o name\t\tname C output file\n"
- "\t-s name\t\tname asm output file\n"
- "\t-l name\t\tname ld65 config output file (for vlir)\n"
- "Or as VLIR linker: %s -vlir output.cvt header [vlir0] ... [blank] ... [vlir_n]\n",
- ProgName,ProgName);
+ printf("Usage: %s [options] file\n"
+ "Options:\n"
+ "\t-h, -?\t\tthis help\n"
+ "\t-f\t\tforce writting files\n"
+ "\t-o name\t\tname C output file\n"
+ "\t-s name\t\tname asm output file\n"
+ "\t-l name\t\tname ld65 config output file (for vlir)\n"
+ "Or as VLIR linker: %s -vlir output.cvt header [vlir0] ... [blank] ... [vlir_n]\n",
+ ProgName,ProgName);
}
int findToken (const char **tokenTbl, const char *token) {
static void Usage (void)
/* Print usage information and exit */
{
- fprintf (stderr,
- "Usage: %s [options] module ...\n"
- "Short options:\n"
- " -C name\t\tUse linker config file\n"
- " -L path\t\tSpecify a library search path\n"
- " -Ln name\t\tCreate a VICE label file\n"
- " -S addr\t\tSet the default start address\n"
- " -V\t\t\tPrint the linker version\n"
- " -h\t\t\tHelp (this text)\n"
- " -m name\t\tCreate a map file\n"
- " -o name\t\tName the default output file\n"
- " -t sys\t\tSet the target system\n"
- " -v\t\t\tVerbose mode\n"
- " -vm\t\t\tVerbose map file\n"
- "\n"
- "Long options:\n"
- " --cfg-path path\tSpecify a config file search path\n"
- " --config name\t\tUse linker config file\n"
- " --dbgfile name\tGenerate debug information\n"
- " --dump-config name\tDump a builtin configuration\n"
- " --help\t\tHelp (this text)\n"
- " --lib file\t\tLink this library\n"
- " --lib-path path\tSpecify a library search path\n"
- " --mapfile name\tCreate a map file\n"
- " --module-id id\tSpecify a module id\n"
- " --obj file\t\tLink this object file\n"
- " --obj-path path\tSpecify an object file search path\n"
- " --start-addr addr\tSet the default start address\n"
- " --target sys\t\tSet the target system\n"
- " --version\t\tPrint the linker version\n",
- ProgName);
+ printf ("Usage: %s [options] module ...\n"
+ "Short options:\n"
+ " -C name\t\tUse linker config file\n"
+ " -L path\t\tSpecify a library search path\n"
+ " -Ln name\t\tCreate a VICE label file\n"
+ " -S addr\t\tSet the default start address\n"
+ " -V\t\t\tPrint the linker version\n"
+ " -h\t\t\tHelp (this text)\n"
+ " -m name\t\tCreate a map file\n"
+ " -o name\t\tName the default output file\n"
+ " -t sys\t\tSet the target system\n"
+ " -v\t\t\tVerbose mode\n"
+ " -vm\t\t\tVerbose map file\n"
+ "\n"
+ "Long options:\n"
+ " --cfg-path path\tSpecify a config file search path\n"
+ " --config name\t\tUse linker config file\n"
+ " --dbgfile name\tGenerate debug information\n"
+ " --dump-config name\tDump a builtin configuration\n"
+ " --help\t\tHelp (this text)\n"
+ " --lib file\t\tLink this library\n"
+ " --lib-path path\tSpecify a library search path\n"
+ " --mapfile name\tCreate a map file\n"
+ " --module-id id\tSpecify a module id\n"
+ " --obj file\t\tLink this object file\n"
+ " --obj-path path\tSpecify an object file search path\n"
+ " --start-addr addr\tSet the default start address\n"
+ " --target sys\t\tSet the target system\n"
+ " --version\t\tPrint the linker version\n",
+ ProgName);
}
}
Error ("Cannot generate output due to memory area overflow%s",
(MemoryAreaOverflows > 1)? "s" : "");
- }
+ }
/* Create the output file */
CfgWriteTarget ();
/* */
/* */
/* */
-/* (C) 2002-2003 Ullrich von Bassewitz */
+/* (C) 2002-2005 Ullrich von Bassewitz */
/* Römerstrasse 52 */
/* D-70794 Filderstadt */
/* EMail: uz@cc65.org */
static void Usage (void)
{
- fprintf (stderr,
- "Usage: %s [options] file\n"
- "Short options:\n"
- " -C name\t\tUse simulator config file\n"
- " -L dir\t\tSet a chip directory search path\n"
- " -V\t\t\tPrint the simulator version number\n"
- " -d\t\t\tDebug mode\n"
- " -h\t\t\tHelp (this text)\n"
- " -v\t\t\tIncrease verbosity\n"
- "\n"
- "Long options:\n"
- " --chipdir dir\t\tSet a chip directory search path\n"
- " --config name\t\tUse simulator config file\n"
- " --cpu type\t\tSet cpu type\n"
- " --debug\t\tDebug mode\n"
- " --help\t\tHelp (this text)\n"
- " --verbose\t\tIncrease verbosity\n"
- " --version\t\tPrint the simulator version number\n",
- ProgName);
+ printf ("Usage: %s [options] file\n"
+ "Short options:\n"
+ " -C name\t\tUse simulator config file\n"
+ " -L dir\t\tSet a chip directory search path\n"
+ " -V\t\t\tPrint the simulator version number\n"
+ " -d\t\t\tDebug mode\n"
+ " -h\t\t\tHelp (this text)\n"
+ " -v\t\t\tIncrease verbosity\n"
+ "\n"
+ "Long options:\n"
+ " --chipdir dir\t\tSet a chip directory search path\n"
+ " --config name\t\tUse simulator config file\n"
+ " --cpu type\t\tSet cpu type\n"
+ " --debug\t\tDebug mode\n"
+ " --help\t\tHelp (this text)\n"
+ " --verbose\t\tIncrease verbosity\n"
+ " --version\t\tPrint the simulator version number\n",
+ ProgName);
}