Scroll to navigation

ASMC(1) User Commands ASMC(1)

NAME

asmc - Asmc Macro Assembler

SYNOPSIS

asmc [options] filename [ [options] filename] ... [-link link_options]

DESCRIPTION

Asmc Macro Assembler

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.
Specifies the architecture for code generation. Valid options are: IA32, SSE, SSE2, AVX, AVX2, and AVX512.
Generate .assert code.
Calculate required stack space for arguments.
Generate plain binary file.
Selects an alternate linker in filename
Assembles only. Does no linking.
Push user registers before stack-frame is created in a proc.
Generate COFF format object file.
Set OPTION CASEMAP.
Preserves case of all user identifiers.
Maps all identifiers to upper case (default).
Preserves case in public and extern symbols.
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.
Allows names of identifiers to begin with a period.
Set error limit to number.
Generate ELF object file.
Generate 32-bit ELF object file.
Generate 64-bit ELF object file.
Insert ENDBR at function entry.
Generates a preprocessed source listing (sent to STDOUT). See -Sf.
Don't display error messages.
Write import definition file.
Force file to be included.
Generates an assembled code listing. See -Sf.
Names an object file. In case of wildcard '*' may be used for current file.
Disallow floating-point instructions.
Generates emulator fix-ups for floating-point arithmetic (mixed language only).
80x87 instructions (default).
Enables or disables the generation of position-independent code for ELF64. Default is -fno-pic.
Set FPU as n: 0=8087, 2=80287, 3=80387.
Auto generate unwind information.
Set errors file name.
Pascal, C, Std/Vector/Sys-call.
Specifies use of FORTRAN-style or Pascal-style function calling and naming conventions.
Specifies use of C-style function calling and naming conventions.
Specifies use of STDCALL-style function calling and naming conventions. Defines STDCALLSUPPORTED.
Specifies use of VECTORCALL-style function calling and naming conventions.
Specifies use of SYSCALL (System V)-style function calling and naming conventions.
Emit a conditional _chkstk() inside the prologue.
Displays a summary of Asmc command-line syntax and options.
Forces parameters passed in registers to be written to their locations on the stack upon function entry.
Sets pathname for include file.
Assemble as binary data [or text].
Assemble source as binary data.
Assemble source as text file.
Print logo string and exit.
Set memory model.
Generate DOS MZ binary file.
Use for dynamic linking. Defines _MSVCRT. Also defines _DEBUG if "d" is added.
Use for static linking. Defines _MT. Also defines _DEBUG if "d" is added.
Set class name of code segment as name.
Set name of data segment as name.
Set name of module as name.
Set name of text segment as name.
Ignore INCLUDELIB directive.
Generate PE binary file, 32/64-bit. c=CUI(default), g=GUI, d=DLL.
Suppresses messages for successful assembly.
Suppress copyright message.
Recurse subdirectories with use of wildcards.
Turns on listing of all available information.
Marks the object as either containing no exception handlers or containing exception handlers that are all declared with SAFESEH.
Adds first-pass listing to listing file.
Turns on listing of assembly-generated code.
Turns off symbol table when producing a listing.
Set segment alignment as n.
Align stack variables to 16-byte.
Ignore RDI and RSI in USES for Linux64.
Turns on false conditionals in listing.
Same as -W0 -WX.
Sets the warning level, where level = 0, 1, 2, or 3.
Generate 64-bit COFF object. Defines _WIN64.
Store quoted CodePage as Unicode. Defines _UNICODE.
Treat all warnings as errors.
Ignore INCLUDE environment path.
Add full symbolic debugging information.
No decoration for C symbols.
Generates line-number information in object file.
Make all symbols public.
Set FASTCALL type: MS/OW.
Generate code to match Masm.
Add symbolic debugging information.
No OMF records of data in code.
No OMF records of far call.
Enable MASM 5.10 compatibility.
Enable Masm v8+ PROC visibility.
Disable syntax extensions not supported and enable syntax supported by Masm.
Suppress items in COFF
Suppress items in COFF: No file entry.
Suppress items in COFF: No static procs.
Suppress items in COFF: No section aux entry.
Packs structures of the specified byte boundary by alignment.
Perform syntax check only.
Set STDCALL decoration: FULL (default), NONE, and HALF.
No export symbol decoration.
Store name of start address.

COPYRIGHT

Copyright (C) 2011-2025 The Asmc Contributors.

SEE ALSO

https://github.com/nidud/asmc/blob/master/readme.md
https://github.com/nidud/asmc_linux
https://github.com/nidud/asmc
January 2025 Asmc Macro Assembler