YASM(1) The Yasm Modular Assembler YASM(1) (NAME) yasm - Yasm (SYNOPSIS) yasm [-f format] [-o outfile] [other options...] {infile} yasm -h (DESCRIPTION) Yasm (retargetable) "" BSD ( ) . Yasm x86 AMD64 NASM GAS ELF32 ELF64 COFF Win32 Win64 STABS DWARF 2 CodeView 8 . YASM yasm libyasm . libyasm () yasm . yasm infile outfile . outfile yasm .o .obj . yasm.out . infile "-" yasm outfile outfile yasm.out . (OPTIONS) : . . (General Options) -a arch --arch=arch: . "x86" IA-32 AMD64 . "help" arch . yasm_arch(7) . -f format --oformat=format: (Object) . "bin" (relocation) . "help" format . yasm_objfmts(7) . -g debug --dformat=debug: (Debug) . () . yasm . . "help" debug . yasm_dbgfmts(7) . -L list --lformat=list: (List) / . . "nasm" NASM . "help" list . -l listfile --list=listfile: . . -m machine --machine=machine: . . "x86" "x86" IA-32 "amd64" . (relocatable) COFF ELF . "help" machine -a arch . yasm_arch(7) . -o filename --objfile=filename: Yasm . -p parser --parser=parser: (Parser) ( ) . "nasm" NASM ( Netwide) . "gas" GNU AS . "help" parser . yasm_parsers(7) . -r preproc --preproc=preproc: (Preprocessor) . . "nasm" NASM . "raw" . "help" preproc . -h --help: . . --version: Yasm Yasm . . (Warning Options) -W : -Wname -Wno-name. . -w -Worphan-labels orphan-labels. -w: Yasm . . -Werror: Yasm . yasm . . -Wno-unrecognized-char: Yasm . Yasm ASCII . -Worphan-labels: NASM Yasm (colon) . NASM . -X style: / . "gnu" gcc . "vc" Visual C++ . Yasm IDE Visual Studio Emacs IDE . (Preprocessor Options) Yasm "nasm" . -D macro[=value]: . ( ). -e --preproc-only: . . -I path: Include path include . . -P filename: (Pre-include) filename filename . -D . -U macro: ( -D ). (EXAMPLES) x86 NASM source.asm ELF source.o (orphan labels): yasm -f elf32 -Worphan-labels source.asm AMD64 NASM x.asm Win64 object.obj: yasm -f win64 -o object.obj x.asm x86 NASM y.asm (flat binary) y.com: yasm -f bin -r raw -o y.com y.asm (DIAGNOSTICS) yasm 0 . (COMPATIBILITY) NASM Yasm NASM Yasm . GAS Yasm GNU AS . (RESTRICTIONS) . (symbol maps) . (SEE ALSO) yasm_arch(7), yasm_dbgfmts(7), yasm_objfmts(7), yasm_parsers(7) : as(1), ld(1), nasm(1) (BUGS) "x86" AMD64 ( BITS 64) ( -m amd64 ELF64 ) . (AUTHOR) Peter Johnson . (COPYRIGHT) Copyright (C) 2004, 2005, 2006, 2007 Peter Johnson Yasm April 2007 YASM(1)