nasm -h # linux way to get help for calling a program usage: nasm [-@ response file] [-o outfile] [-f format] [-l listfile] [options...] [--] filename or nasm -v for version info -t assemble in SciTech TASM compatible mode -g generate debug information in selected format -E (or -e) preprocess only (writes output to stdout by default) -a don't preprocess (assemble only) -M generate Makefile dependencies on stdout -MG d:o, missing files assumed generated -MF set Makefile dependency file -MD assemble and generate dependencies -MT dependency target name -MQ dependency target name (quoted) -MP emit phony target -Z redirect error messages to file -s redirect error messages to stdout -F format select a debugging format -I adds a pathname to the include file path -O optimize branch offsets -O0: No optimization -O1: Minimal optimization -Ox: Multipass optimization (default) -P pre-includes a file -D[=] pre-defines a macro -U undefines a macro -X specifies error reporting format (gnu or vc) -w+foo enables warning foo (equiv. -Wfoo) -w-foo disable warning foo (equiv. -Wno-foo) --prefix,--postfix this options prepend or append the given argument to all extern and global variables Warnings: error treat warnings as errors (default off) macro-params macro calls with wrong parameter count (default on) macro-selfref cyclic macro references (default off) macro-defaults macros with more default than optional parameters (default on) orphan-labels labels alone on lines without trailing `:' (default on) number-overflow numeric constant does not fit (default on) gnu-elf-extensions using 8- or 16-bit relocation in ELF32, a GNU extension (default off) float-overflow floating point overflow (default on) float-denorm floating point denormal (default off) float-underflow floating point underflow (default off) float-toolong too many digits in floating-point number (default on) user %warning directives (default on) lock lock prefix on unlockable instructions (default on) hle invalid hle prefixes (default on) response files should contain command line parameters, one per line. For a list of valid output formats, use -hf. For a list of debug formats, use -f
-y. usage: nasm [-@ response file] [-o outfile] [-f format] [-l listfile] [options...] [--] filename or nasm -v for version info -t assemble in SciTech TASM compatible mode -g generate debug information in selected format -E (or -e) preprocess only (writes output to stdout by default) -a don't preprocess (assemble only) -M generate Makefile dependencies on stdout -MG d:o, missing files assumed generated -MF set Makefile dependency file -MD assemble and generate dependencies -MT dependency target name -MQ dependency target name (quoted) -MP emit phony target -Z redirect error messages to file -s redirect error messages to stdout -F format select a debugging format -I adds a pathname to the include file path -O optimize branch offsets -O0: No optimization -O1: Minimal optimization -Ox: Multipass optimization (default) -P pre-includes a file -D[=] pre-defines a macro -U undefines a macro -X specifies error reporting format (gnu or vc) -w+foo enables warning foo (equiv. -Wfoo) -w-foo disable warning foo (equiv. -Wno-foo) --prefix,--postfix this options prepend or append the given argument to all extern and global variables Warnings: error treat warnings as errors (default off) macro-params macro calls with wrong parameter count (default on) macro-selfref cyclic macro references (default off) macro-defaults macros with more default than optional parameters (default on) orphan-labels labels alone on lines without trailing `:' (default on) number-overflow numeric constant does not fit (default on) gnu-elf-extensions using 8- or 16-bit relocation in ELF32, a GNU extension (default off) float-overflow floating point overflow (default on) float-denorm floating point denormal (default off) float-underflow floating point underflow (default off) float-toolong too many digits in floating-point number (default on) user %warning directives (default on) lock lock prefix on unlockable instructions (default on) hle invalid hle prefixes (default on) response files should contain command line parameters, one per line. nasm -hf # many output formats available, we use -f elf64 valid output formats for -f are (`*' denotes default): * bin flat-form binary files (e.g. DOS .COM, .SYS) ith Intel hex srec Motorola S-records aout Linux a.out object files aoutb NetBSD/FreeBSD a.out object files coff COFF (i386) object files (e.g. DJGPP for DOS) elf32 ELF32 (i386) object files (e.g. Linux) elf64 ELF64 (x86_64) object files (e.g. Linux) elfx32 ELFX32 (x86_64) object files (e.g. Linux) as86 Linux as86 (bin86 version 0.3) object files obj MS-DOS 16-bit/32-bit OMF object files win32 Microsoft Win32 (i386) object files win64 Microsoft Win64 (x86-64) object files rdf Relocatable Dynamic Object File Format v2.0 ieee IEEE-695 (LADsoft variant) object file format macho32 NeXTstep/OpenStep/Rhapsody/Darwin/MacOS X (i386) object files macho64 NeXTstep/OpenStep/Rhapsody/Darwin/MacOS X (x86_64) object files dbg Trace of all info passed to output stage elf ELF (short name for ELF32) macho MACHO (short name for MACHO32) win WIN (short name for WIN32)