Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

49 lines (48 sloc) 1.89 KB
.\" Title: yasm_parsers
.\" Author: Peter Johnson <>
.\" Generator: DocBook XSL Stylesheets v1.70.1 <>
.\" Date: October 2006
.\" Manual: Yasm Supported Parsers
.\" Source: Yasm
.TH "YASM_PARSERS" "7" "October 2006" "Yasm" "Yasm Supported Parsers"
.\" disable hyphenation
.\" disable justification (adjust text to left margin only)
.ad l
yasm_parsers \- Yasm Supported Parsers (Assembler Syntaxes)
.HP 5
\fByasm\fR \fB\-p\ \fR\fB\fIparser\fR\fR [\fB\-r\ \fR\fB\fIpreproc\fR\fR] \fB\fI...\fR\fR
The standard Yasm distribution includes a number of modules for different parsers (assembler syntaxes).
The parser is selected on the
command line by use of the
\fB\-p \fR\fB\fIparser\fR\fR
command line option.
NASM syntax, selected with
\fB\-p nasm\fR, is the most full\-featured syntax supported by Yasm. Yasm is nearly 100% compatible with NASM for 16\-bit and 32\-bit x86 code. Yasm additionally supports 64\-bit AMD64 code with Yasm extensions to the NASM syntax; see
for details. NASM syntax is the Yasm default.
The GNU Assembler (GAS) is the de\-facto cross\-platform assembler for modern Unix systems, and is used as the backend for the GCC compiler. Yasm's support for GAS syntax is moderately good, although immature: not all directives are supported, and only 32\-bit x86 and AMD64 architectures are supported. There is also no support for the GAS preprocessor. Despite these limitations, Yasm's GAS syntax support is good enough to handle essentially all x86 and AMD64 GCC compiler output. The GAS parser can be selected with
\fB\-p gas\fR.
\fBPeter\fR \fBJohnson\fR <>
.sp -1n
.IP "" 3n
Copyright \(co 2006 Peter Johnson
Jump to Line
Something went wrong with that request. Please try again.