| 1 | JWasm v2.06d, Jul  1 2011, Masm-compatible assembler. | 
|---|
| 2 | Portions Copyright (c) 1992-2002 Sybase, Inc. All Rights Reserved. | 
|---|
| 3 | Source code is available under the Sybase Open Watcom Public License. | 
|---|
| 4 |  | 
|---|
| 5 | JWasm [options] asm-file [options] [asm-file] ... [@env_var] | 
|---|
| 6 |  | 
|---|
| 7 | options: | 
|---|
| 8 | -<0|1|..|10>[p]      Set CPU: 0=8086 (default), 1=80186, 2=80286, 3=80386, | 
|---|
| 9 | 4=80486, 5=Pentium, 6=PPro, 7=P2, 8=P3, 9=P4, 10=x86-64. | 
|---|
| 10 | <p> allows privileged instructions. | 
|---|
| 11 | -c                   Assemble without linking (always set) | 
|---|
| 12 | -C<p|u|x>            Set OPTION CASEMAP: p=NONE, u=ALL, | 
|---|
| 13 | x=NOTPUBLIC (default). | 
|---|
| 14 | -D<name>[=text]      Define text macro | 
|---|
| 15 | -e<number>           Set error limit number (default=50) | 
|---|
| 16 | -EP                  Output preprocessed listing to stdout | 
|---|
| 17 | -eq                  don't display error messages | 
|---|
| 18 | -Fd<file_name>       Set linker import definition file name | 
|---|
| 19 | -Fi<file_name>       Force <file_name> to be included | 
|---|
| 20 | -Fl[=<file_name>]    Write listing file | 
|---|
| 21 | -Fo<file_name>       Set object file name | 
|---|
| 22 | -Fw<file_name>       Set errors file name | 
|---|
| 23 | -FPi                 80x87 instructions with emulation fixups | 
|---|
| 24 | -FPi87               80x87 instructions (default) | 
|---|
| 25 | -fpc                 Disallow floating-point instructions (.NO87) | 
|---|
| 26 | -fp<n>               Set FPU, <n> is: 0=8087 (default), 2=80287, 3=80387 | 
|---|
| 27 | -G<c|d|z>            Use Pascal, C or Stdcall calling convention | 
|---|
| 28 | -I<directory>        Add directory to list of include directories | 
|---|
| 29 | -m<t|s|c|m|l|h|f>    Set memory model: | 
|---|
| 30 | (Tiny, Small, Compact, Medium, Large, Huge, Flat) | 
|---|
| 31 | -nc=<name>           Set class name of code segment | 
|---|
| 32 | -n<d|m|t>=<name>     Set name of data segment, module or text segment | 
|---|
| 33 | -q, -nologo          Don't display version and copyright information | 
|---|
| 34 | -Sa                  Maximize source listing | 
|---|
| 35 | -safeseh             Assert all exception handlers are declared | 
|---|
| 36 | -Sf                  Generate first pass listing | 
|---|
| 37 | -Sg                  Display generated code in listing | 
|---|
| 38 | -Sn                  Suppress symbol-table listing | 
|---|
| 39 | -Sx                  List false conditionals | 
|---|
| 40 | -w                   Same as /W0 /WX | 
|---|
| 41 | -W<number>           Set warning level number (default=2, max=4) | 
|---|
| 42 | -WX                  Treat all warnings as errors | 
|---|
| 43 | -X                   Ignore INCLUDE environment path | 
|---|
| 44 | -zcm                 C names are decorated with '_' prefix (default) | 
|---|
| 45 | -zcw                 No name decoration for C symbols | 
|---|
| 46 | -Zd                  Add line number debug info (OMF & COFF only) | 
|---|
| 47 | -Zf                  Make all symbols public | 
|---|
| 48 | -zf<0|1>             Set FASTCALL type: 0=MS VC style (default), | 
|---|
| 49 | 1=OW register calling convention | 
|---|
| 50 | -Zg                  Generated code is to exactly match Masm's one | 
|---|
| 51 | -Zi                  Add symbolic debug info (OMF & COFF only) | 
|---|
| 52 | -zlc                 No OMF records about data in code | 
|---|
| 53 | -zld                 No OMF records about far call optimization | 
|---|
| 54 | -zlf                 No COFF .file entry in symbol table | 
|---|
| 55 | -zls                 No COFF auxiliary entries for sections in symbol table | 
|---|
| 56 | -Zm                  Masm v5.1 compatibility | 
|---|
| 57 | -Zne                 Disable syntax extensions not supported by Masm | 
|---|
| 58 | -Zp[n]               Set structure alignment, n=<1|2|4|8|16|32> | 
|---|
| 59 | -Zs                  Perform syntax check only | 
|---|
| 60 | -zt<0|1|2>           Set STDCALL symbol decoration: 0=No name decoration, | 
|---|
| 61 | 1=No '@size' suffix for functions, 2=Full (default) | 
|---|
| 62 | -Zv8                 Enable Masm v8+ PROC visibility | 
|---|
| 63 | -zze                 No name decoration for exported symbols | 
|---|
| 64 | -zzs                 Store decorated name of start address (COFF only) | 
|---|
| 65 | @env_var             Environment variable or file containing further commands | 
|---|
| 66 | output formats: | 
|---|
| 67 | -bin                 plain binary file | 
|---|
| 68 | -coff                32-bit COFF format object file | 
|---|
| 69 | -elf                 32-bit ELF format object file | 
|---|
| 70 | -elf64               64-bit ELF format object file | 
|---|
| 71 | -mz                  DOS MZ binary file | 
|---|
| 72 | -omf                 OMF format object file (default) | 
|---|
| 73 | -win64               64-bit COFF format object file | 
|---|