-v (or | Causes nasm to exit immediately, after displaying its version number. | help + man |
-@ file | Causes nasm to process options from filename as if they were included on the command line. | help + man |
-h | Causes nasm to exit immediately, after giving a summary of its invocation options. | help + man |
-o outfile | Specifies a precise name for the output file, overriding nasm's default means of determining it. | help + man |
--keep-all | output files will not be removed even if an error happens | help |
-Xformat | specify error reporting format (see -h -X) | help |
-s | Causes nasm to send its error messages and/or help text to stdout instead of stderr. | help + man |
-Zfile | redirect messages to file | help |
--info lvl | display optional informational messages | help |
--debug lvl | display NASM internal debugging messages | help |
-M | Causes nasm to output Makefile-style dependencies to stdout; | help + man |
-f format | select output file format (see -h -f) | help + man |
-g | Causes nasm to generate debug information. | help + man |
-F format | Specifies the debug information format. | help + man |
-gformat | Equivalent to -g -F format. | help + man |
-l listfile | Causes an assembly listing to be directed to the given file, in which the original source is displayed on the right hand side (plus the source for included files and the expansions of multi-line… | help + man |
-Lflags | add information to the list file (see -h -L) | help |
-Oflags | select optimization (see -h -O) | help |
-t | Causes nasm to assemble in SciTech TASM compatible mode. | help + man |
-E (or | preprocess only (writes output to stdout by default) | help |
-a | Causes nasm to assemble the given input file without first applying the macro preprocessor. | help + man |
-Ipath | add a pathname to the include file path | help |
-Pfile | pre-include a file (also --include) | help |
-Dmacro str | pre-define a macro | help |
-Umacro | undefine a macro | help |
-w+x | enable warning x (see -h -w)(also -Wx) | help |
-w-x | disable warning x (also -Wno-x) | help |
-w +-]error | Causes nasm to enable or disable certain classes of warning messages, for example -w+label-orphan or -w-macro-params. | help + man |
--pragma str | pre-executes a specific %pragma | help |
--before str | add line (usually a preprocessor statement) before the input | help |
--bits nn | set bits to nn (equivalent to --before "BITS nn") | help |
--no-line | ignore %line directives in input | help |
--gprefix str | prepend the given string to the names of all extern, common and global symbols (also --prefix) | help |
--lprefix str | prepend the given string to local symbols | help |
-hf | Same as -h , but also lists all valid output formats. (in the manual page but not in --help) | man |
-MG file | Same as -M but assumes that missing Makefile dependencies are generated and added to dependency list without a prefix. (in the manual page but not in --help) | man |
-MF file | Output Makefile-style dependencies to the specified file. (in the manual page but not in --help) | man |
-MD file | Same as a combination of -M and -MF options. (in the manual page but not in --help) | man |
-MT file | Override the default name of the dependency target dependency target name. (in the manual page but not in --help) | man |
-MQ file | The same as -MT except it tries to quote characters that have special meaning in Makefile syntax. (in the manual page but not in --help) | man |
-MP | Emit phony target. (in the manual page but not in --help) | man |
-O number | Optimize branch offsets. (in the manual page but not in --help) | man |
-W no-]foo' | Causes nasm to enable or disable certain classes of warning messages, in gcc-like style, for example -Wlabel-orphan or -Wno-orphan-labels. (in the manual page but not in --help) | man |
-X format | Specifies error reporting format (gnu or vc). (in the manual page but not in --help) | man |
-y | Causes nasm to list supported debug formats. (in the manual page but not in --help) | man |
-Z filename | Causes nasm to redirect error messages to filename. (in the manual page but not in --help) | man |
--prefix, --postfix | Prepend or append (respectively) the given argument to all global or extern variables. (in the manual page but not in --help) | man |