other sections
| ASMC(1) | User Commands | ASMC(1) |
NAME¶
asmc - Asmc Macro Assembler
SYNOPSIS¶
asmc |
[options] filename [ [options] filename] ... [-link link_options] |
DESCRIPTION¶
Asmc is a slow-burning attempt of making a functional programming language out of assembly. It supports AVX-512 instructions (Masm v14) but the "Version" macro is currently set to v10. The assembler is written in assembly and is open source under the GNU General Public License. It runs on Windows and Linux.
OPTIONS¶
- -{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.
- -arch:option
- Specifies the architecture for code generation. Valid options are: IA32, SSE, SSE2, AVX, AVX2, AVX512, AVX10.1 and AVX10.1.
- -assert
- Generate ".assert" code.
- -autostack
- Calculate required stack space for arguments.
- -bin
- Generate plain binary file.
- -Blfilename
- Selects an alternate linker in filename
- -c
- Assembles only. Does no linking.
- -Cs
- Push user registers before stack-frame is created in a proc.
- -coff
- Generate COFF format object file.
- -C{p|u|x}
- Set OPTION CASEMAP.
- -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.
- -dotname
- Allows names of identifiers to begin with a period.
- -enumber
- Set error limit to number.
- -elf[64]
- Generate ELF object file.
- -endbr
- Insert ENDBR at function entry.
- -EP
- Generates a preprocessed source listing (sent to STDOUT). See -Sf.
- -eq
- Don't display error messages.
- -Fefilename
- Names the executable file.
- -Fifilename
- Force filename to be included.
- -Fl[filename]
- Generates an assembled code listing. See -Sf.
- -Fofilename
- Names an object file. In case of wildcard '*' may be used for current file.
- -fpn
- Set FPU as n: 0=8087, 2=80287, 3=80387.
- -fpc
- Disallow floating-point instructions.
- -FPi
- Generates emulator fix-ups for floating-point arithmetic (mixed language only).
- -FPi87
- 80x87 instructions (default).
- -fPIC
- Generate Position Independent Code for ELF.
- -fpic
- Generate Position Independent Code for ELF.
- -fplt
- Generate Position Independent Code for ELF.
- -fno-pic
- Disables the generation of Position Independent Code for ELF (default).
- -fno-plt
- Disables the generation of Position Independent Code for ELF.
- -frame
- Auto generate unwind information.
- -Fwfilename
- Set errors file name.
- -G{c|d|z|v|s}
- Pascal, C, Std/Vector/Sys-call.
- -Gc
- Specifies use of FORTRAN-style or Pascal-style function calling and naming conventions.
- -Gd
- Specifies use of C-style function calling and naming conventions.
- -Gz
- Specifies use of STDCALL-style function calling and naming conventions. Defines STDCALLSUPPORTED.
- -Gv
- Specifies use of VECTORCALL-style function calling and naming conventions.
- -Gs
- Specifies use of SYSCALL (System V)-style function calling and naming conventions.
- -Ge
- Emit a conditional _chkstk() inside the prologue.
- -Gw[-]
- Package global data in COMDAT sections for optimization. To explicitly disable it, use -Gw-
- -Gz
- Specifies use of STDCALL-style function calling and naming conventions. Defines _STDCALL_SUPPORTED.
- -h, -help
- Displays a summary of Asmc command-line syntax and options.
- -homeparams
- Forces parameters passed in registers to be written to their locations on the stack upon function entry.
- -Ipathname
- Sets pathname for include file.
- -idd[t]
- Assemble as binary data [or text].
- -info
- Displays module assembly information.
- -jtd
- Move Jump Table to Data segment.
- -link
- The link options.
- -logo,-version
- Print logo string and exit.
- -m{t|s|c|m|l|h|f}
- Set memory model.
- -MD
- Multi-threaded DLL. Defines _MT, _DLL, and _MSVCRT.
- -MDd
- Multi-threaded Debug DLL. Defines _MT, _DLL, _MSVCRT and _DEBUG.
- -MT
- Multi-threaded. Defines _MT.
- -MTd
- Multi-threaded Debug. This option causes the assembler to select LIBCMTD if ".PRAGMA" comment(lib, LIBCMT) is used. Defines _MT and _DEBUG.
- -mscrt
- Generate MSCRT init/exit segments for ELF.
- -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.
- -nolib
- Ignore INCLUDELIB directive.
- -nologo
- Suppress copyright message.
- -omf
- Generates object module file format (OMF) type of object module.
- -pe{c|g|d}
- Generate PE binary file, 32/64-bit.
- -q
- Operate quietly.
- -r
- Recurse subdirectories with use of wildcards.
- -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.
- -Spalignment
- Set segment alignment.
- -stackalign
- Align stack variables to 16-byte.
- -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. Defines _WIN64.
- -wscodepage
- Store quoted codepage as Unicode. Defines _UNICODE.
- -WX
- Returns an error code if warnings are generated.
- -X
- Ignore INCLUDE environment path.
- -Z7
- Add full symbolic debugging information.
- -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.
- -ZH:MD5
- Use MD5 for checksum in debug info.
- -ZH:SHA_256
- Use SHA256 for checksum in debug info (default).
- -ZH:SHA384
- Use SHA384 for checksum in debug info.
- -ZH:SHA512
- Use SHA512 for checksum in debug info.
- -Zi{|0|1|2|3}{|5|4}
- Add symbolic debugging information.
- -zlc
- No OMF records of data in code.
- -zld
- No OMF records of far call.
- -Zm
- Enable MASM 5.10 compatibility.
- -Zv8
- Enable Masm v8+ PROC visibility.
- -Zne
- Disable syntax extensions not supported and enable syntax supported by Masm.
- -zlc
- No OMF records of data in code.
- -zld
- No OMF records of far call.
- -zl{f|p|s}
- Suppress items in COFF
- -Zm
- Enable MASM 5.10 compatibility.
- -Zne
- Disable syntax extensions not supported and enable syntax supported by Masm.
- -Zpalignment
- Packs structures of the specified byte boundary by alignment.
- -Zs
- Perform syntax check only.
- -zt{0|1|2}
- Set STDCALL decoration: FULL (default), NONE, and HALF.
COPYRIGHT¶
Copyright (C) 2011-2026 The Asmc Contributors.
SEE ALSO¶
| October 2026 | Asmc Macro Assembler |