Asmc Macro Assembler Reference
The name of the file.
Asmc Command-Line Reference
Assembles and links one or more assembly-language source files. The command-line options are case sensitive.
ASMC [[options]] filename [[ [[options]] filename]]
options
The options listed in the following table.
/[0|1|..|10][p] | Set CPU: 0=8086 (default), 1=80186, 2=80286, 3=80386, 4=80486, 5=Pentium,6=PPro,7=P2,8=P3,9=P4,10=x86-64. [p] allows privileged instructions. |
/assert | Generate .assert(code). Same as .assert:on. |
/bin | Generate plain binary file. |
/Cs | Push user registers before stack-frame is created in a proc. |
/coff | Generate COFF format object file. |
/Cp | Preserves case of all user identifiers. |
/Cu | Maps all identifiers to upper case (default). |
/cui | Link switch used with /pe -- subsystem:console (default). |
/Cx | Preserves case in public and extern symbols. |
/Dsymbol[[=value]] | Defines a text macro with the given name. If value is missing, it is blank. Multiple tokens separated by spaces must be enclosed in quotation marks. |
/enumber | Set error limit number. |
/elf | Generate 32-bit ELF object file. |
/elf64 | Generate 64-bit ELF object file. |
/EP | Generates a preprocessed source listing (sent to STDOUT). See /Sf. |
/eq | Don't display error messages. |
/Fd[file] | Write import definition file. |
/Fifile | Force file to be included. |
/Fl[[filename]] | Generates an assembled code listing. See /Sf. |
/Fofilename | Names an object file. |
/Fwfilename | Set errors file name. |
/FPi | Generates emulator fix-ups for floating-point arithmetic (mixed language only). |
/FPi87 | 80x87 instructions (default). |
/fpc | Disallow floating-point instructions. |
/fpn | Set FPU: 0=8087, 2=80287, 3=80387. |
/Gc | Specifies use of FORTRAN- or Pascal-style function calling and naming conventions. Same as OPTION LANGUAGE:PASCAL. |
/Gd | Specifies use of C-style function calling and naming conventions. Same as OPTION LANGUAGE:C. |
/gui | Link switch used with /pe -- subsystem:windows. |
/Gv | Specifies use of VECTORCALL-style function calling and naming conventions. |
/Gz | Specifies use of STDCALL-style function calling and naming conventions. Same as OPTION LANGUAGE:STDCALL. |
/homeparams | Copy Register Parameters to Stack. Forces parameters passed in registers to be written to their locations on the stack upon function entry. |
/Ipathname | Sets path for include file. |
/m[t|s|c|m|l|h|f] | Set memory model. |
/mz | Generate DOS MZ binary file. |
/ncname | Set class name of code segment. |
/ndname | Set name of data segment. |
/nmname | Set name of module. |
/ntname | Set name of text segment. |
/nologo | Suppresses messages for successful assembly. |
/omf | Generates object module file format (OMF) type of object module. |
/pe | Generate PE binary file, 32/64-bit. |
/pf | Preserve Flags (Epilogue/Invoke). |
/q | Suppress copyright message. |
/r | Recurse subdirectories with use of wild args. |
/Sa | Turns on listing of all available information. |
/safeseh | Marks the object as either containing no exception handlers or containing exception handlers that are all declared with SAFESEH. |
/Sf | Adds first-pass listing to listing file. |
/Sg | Turns on listing of assembly-generated code. |
/Sn | Turns off symbol table when producing a listing. |
/Sp[n] | Set segment alignment. |
/swc | Specifies use of C-style .SWITCH convention (default). |
/swn | No jump-table creation in .SWITCH. |
/swp | Specifies use of Pascal-style .SWITCH convention (auto break). |
/swr | Allows use of register [R|E]AX in .SWITCH code. |
/swt | Allows use of jump-table creation in .SWITCH code (default). |
/Sx | Turns on false conditionals in listing. |
/w | Same as /W0. |
/Wlevel | Sets the warning level, where level = 0, 1, 2, or 3. |
/win64 | Generate 64-bit COFF object. |
/ws[CodePage] | Store quoted strings as Unicode. See OPTION WSTRING. |
/WX | Returns an error code if warnings are generated. |
/X | Ignore INCLUDE environment path. |
/Xc | Disable Asmc extensions |
/zcw | No decoration for C symbols. |
/Zd | Generates line-number information in object file. |
/Zf | Make all symbols public. |
/zf[0|1] | Set FASTCALL type: MS/OW. |
/Zg | Generate code to match Masm. |
/Zi[0|1|2|3] | Add symbolic debug info. |
/zlc | No OMF records of data in code. |
/zld | No OMF records of far call. |
/zlf | Suppress items in COFF: No file entry. |
/zlp | Suppress items in COFF: No static procs. |
/zls | Suppress items in COFF: No section aux entry. |
/Zm | Enable MASM 5.10 compatibility. |
/Zne | Disable non Masm extensions. |
/Zp[[alignment]] | Packs structures on the specified byte boundary. |
/Zs | Perform syntax check only. |
/zt<0|1|2> | Set STDCALL decoration. |
/Zv8 | Enable Masm v8+ PROC visibility. |
/zze | No export symbol decoration. |
/zzs | Store name of start address. |
filename
Environment Variables
INCLUDE | Specifies search path for include files. |
ASMC | Specifies default command-line options. |
TEMP | Specifies path for temporary files. |