hbono@chromium.org | c960eb1 | 2012-11-14 05:27:29 +0000 | [diff] [blame] | 1 | '\" t |
ajwong@chromium.org | 45afe01 | 2009-10-23 19:20:20 +0000 | [diff] [blame] | 2 | .\" Title: yasm_parsers |
| 3 | .\" Author: Peter Johnson <peter@tortall.net> |
hbono@chromium.org | c960eb1 | 2012-11-14 05:27:29 +0000 | [diff] [blame] | 4 | .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/> |
ajwong@chromium.org | 45afe01 | 2009-10-23 19:20:20 +0000 | [diff] [blame] | 5 | .\" Date: October 2006 |
| 6 | .\" Manual: Yasm Supported Parsers |
| 7 | .\" Source: Yasm |
hbono@chromium.org | c960eb1 | 2012-11-14 05:27:29 +0000 | [diff] [blame] | 8 | .\" Language: English |
ajwong@chromium.org | 45afe01 | 2009-10-23 19:20:20 +0000 | [diff] [blame] | 9 | .\" |
| 10 | .TH "YASM_PARSERS" "7" "October 2006" "Yasm" "Yasm Supported Parsers" |
hbono@chromium.org | c960eb1 | 2012-11-14 05:27:29 +0000 | [diff] [blame] | 11 | .\" ----------------------------------------------------------------- |
| 12 | .\" * set default formatting |
| 13 | .\" ----------------------------------------------------------------- |
ajwong@chromium.org | 45afe01 | 2009-10-23 19:20:20 +0000 | [diff] [blame] | 14 | .\" disable hyphenation |
| 15 | .nh |
| 16 | .\" disable justification (adjust text to left margin only) |
| 17 | .ad l |
hbono@chromium.org | c960eb1 | 2012-11-14 05:27:29 +0000 | [diff] [blame] | 18 | .\" ----------------------------------------------------------------- |
| 19 | .\" * MAIN CONTENT STARTS HERE * |
| 20 | .\" ----------------------------------------------------------------- |
ajwong@chromium.org | 45afe01 | 2009-10-23 19:20:20 +0000 | [diff] [blame] | 21 | .SH "NAME" |
| 22 | yasm_parsers \- Yasm Supported Parsers (Assembler Syntaxes) |
| 23 | .SH "SYNOPSIS" |
hbono@chromium.org | c960eb1 | 2012-11-14 05:27:29 +0000 | [diff] [blame] | 24 | .HP \w'\fByasm\fR\ 'u |
| 25 | \fByasm\fR \fB\-p\ \fR\fB\fIparser\fR\fR [\fB\-r\ \fR\fB\fIpreproc\fR\fR] \fB\fI\&.\&.\&.\fR\fR |
ajwong@chromium.org | 45afe01 | 2009-10-23 19:20:20 +0000 | [diff] [blame] | 26 | .SH "DESCRIPTION" |
| 27 | .PP |
hbono@chromium.org | c960eb1 | 2012-11-14 05:27:29 +0000 | [diff] [blame] | 28 | The standard Yasm distribution includes a number of modules for different parsers (assembler syntaxes)\&. |
ajwong@chromium.org | 45afe01 | 2009-10-23 19:20:20 +0000 | [diff] [blame] | 29 | .PP |
| 30 | The parser is selected on the |
| 31 | \fByasm\fR(1) |
| 32 | command line by use of the |
| 33 | \fB\-p \fR\fB\fIparser\fR\fR |
hbono@chromium.org | c960eb1 | 2012-11-14 05:27:29 +0000 | [diff] [blame] | 34 | command line option\&. |
ajwong@chromium.org | 45afe01 | 2009-10-23 19:20:20 +0000 | [diff] [blame] | 35 | .SH "NASM PARSER" |
| 36 | .PP |
| 37 | NASM syntax, selected with |
hbono@chromium.org | c960eb1 | 2012-11-14 05:27:29 +0000 | [diff] [blame] | 38 | \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 |
ajwong@chromium.org | 45afe01 | 2009-10-23 19:20:20 +0000 | [diff] [blame] | 39 | \fByasm_arch\fR(7) |
hbono@chromium.org | c960eb1 | 2012-11-14 05:27:29 +0000 | [diff] [blame] | 40 | for details\&. NASM syntax is the Yasm default\&. |
ajwong@chromium.org | 45afe01 | 2009-10-23 19:20:20 +0000 | [diff] [blame] | 41 | .SH "GAS PARSER" |
| 42 | .PP |
hbono@chromium.org | c960eb1 | 2012-11-14 05:27:29 +0000 | [diff] [blame] | 43 | 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\&. Nearly all of the GAS preprocessor is also supported\&. 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 |
| 44 | \fB\-p gas\fR\&. |
ajwong@chromium.org | 45afe01 | 2009-10-23 19:20:20 +0000 | [diff] [blame] | 45 | .SH "SEE ALSO" |
| 46 | .PP |
| 47 | \fByasm\fR(1), |
| 48 | \fByasm_arch\fR(7) |
| 49 | .SH "AUTHOR" |
| 50 | .PP |
hbono@chromium.org | c960eb1 | 2012-11-14 05:27:29 +0000 | [diff] [blame] | 51 | \fBPeter Johnson\fR <\&peter@tortall\&.net\&> |
| 52 | .RS 4 |
ajwong@chromium.org | 45afe01 | 2009-10-23 19:20:20 +0000 | [diff] [blame] | 53 | Author. |
hbono@chromium.org | c960eb1 | 2012-11-14 05:27:29 +0000 | [diff] [blame] | 54 | .RE |
ajwong@chromium.org | 45afe01 | 2009-10-23 19:20:20 +0000 | [diff] [blame] | 55 | .SH "COPYRIGHT" |
hbono@chromium.org | c960eb1 | 2012-11-14 05:27:29 +0000 | [diff] [blame] | 56 | .br |
ajwong@chromium.org | 45afe01 | 2009-10-23 19:20:20 +0000 | [diff] [blame] | 57 | Copyright \(co 2006 Peter Johnson |
hbono@chromium.org | c960eb1 | 2012-11-14 05:27:29 +0000 | [diff] [blame] | 58 | .br |