YASM_PARSERS(7)
β¨ NAME β¨
yasm_parsers β Yasm Supported Parsers (Assembler Syntaxes) π
okay so bestie, this is the manual page that tells you which assembler syntaxes Yasm can speak. it's giving "multilingual icon" fr fr π
πΈ SYNOPSIS πΈ
yasm -p parser [-r preproc] ...
π DESCRIPTION π
The standard Yasm distribution includes a number of modules for different parsers (assembler syntaxes).
The parser is selected on the yasm(1) command line by use of the -p parser command line option. that's it, that's the whole vibe β you just tell it which dialect you want and it serves πββοΈ
π¦ NASM PARSER π¦
NASM syntax, selected with -p nasm, is the most full-featured syntax supported by Yasm. like, the main character of syntaxes, no cap π
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 yasm_arch(7) for details. so yes she does 64-bit too, she's just got her own lil twist on it β¨
NASM syntax is the Yasm default. so if you don't pick anything, this is what you get. iconic behaviour honestly π
π§ GAS PARSER π§
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. yes, that GCC. the big one. π₯
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. so lowkey she's still in her learning era for this one π not every directive made the cut, and the architecture list is short β 32-bit x86 and AMD64 only, that's the whole guest list.
Nearly all of the GAS preprocessor is also supported. okay ate that part π«Ά
Yasm's GAS syntax support is good enough to handle essentially all x86 and AMD64 GCC compiler output. so like, in practice? she gets the job done for basically everything GCC throws at her. periodt π
The GAS parser can be selected with -p gas.
π SEE ALSO π
π AUTHOR π
Peter Johnson <peter@tortall.net> Author. (the legend herself, we stan π)
π COPYRIGHT π
Copyright Β© 2006 Peter Johnson
heads up bestie: this page came from the Yasm manual, dated October 2006. yes, a vintage queen. still slaying π β¨
later babes, go assemble something cute π¦πΈπ
π¦ where this page comes from
- alpine 3.24: yasm-doc 1.3.0-r4 Β· BSD-2-Clause
- arch rolling: yasm 1.3.0-9 Β· BSD-2-Clause OR BSD-3-Clause AND GPL-2.0-only AND LGPL-2.1-only AND Artistic-1.0-Perl
- debian bookworm: yasm 1.3.0-4
- debian trixie: yasm 1.3.0-7
- epel 10: yasm-devel 1.3.0^20250625git121ab15-1.el10_1 Β· BSD-2-Clause AND BSD-3-Clause AND (GPL-1.0-or-later AND GPL-2.0-or-later OR Artistic-1.0-Perl OR LGPL-2.0-or-later)
- epel 9: yasm-devel 1.3.0^20250625git121ab15-1.el9 Β· BSD-2-Clause AND BSD-3-Clause AND (GPL-1.0-or-later AND GPL-2.0-or-later OR Artistic-1.0-Perl OR LGPL-2.0-or-later)
- fedora 43: yasm-devel 1.3.0^20250625git121ab15-3.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND (GPL-1.0-or-later AND GPL-2.0-or-later OR Artistic-1.0-Perl OR LGPL-2.0-or-later)
- fedora 43: yasm-devel 1.3.0^20250625git121ab15-3.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND (GPL-1.0-or-later AND GPL-2.0-or-later OR Artistic-1.0-Perl OR LGPL-2.0-or-later)
- fedora 44: yasm-devel 1.3.0^20250625git121ab15-3.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND (GPL-1.0-or-later AND GPL-2.0-or-later OR Artistic-1.0-Perl OR LGPL-2.0-or-later)
- fedora 44: yasm-devel 1.3.0^20250625git121ab15-3.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND (GPL-1.0-or-later AND GPL-2.0-or-later OR Artistic-1.0-Perl OR LGPL-2.0-or-later)
- nixos 26.05: yasm 1.3.0
- nixpkgs unstable: yasm 1.3.0
- opensuse-leap 16.0: yasm 1.3.0-160000.2.2 Β· Artistic-1.0 AND BSD-2-Clause AND BSD-3-Clause AND GPL-2.0-or-later AND LGPL-2.0-or-later
- opensuse-leap 16.0: yasm 1.3.0-160000.2.2 Β· Artistic-1.0 AND BSD-2-Clause AND BSD-3-Clause AND GPL-2.0-or-later AND LGPL-2.0-or-later
- opensuse-leap 16.0: yasm 1.3.0-160000.2.2 Β· Artistic-1.0 AND BSD-2-Clause AND BSD-3-Clause AND GPL-2.0-or-later AND LGPL-2.0-or-later
- opensuse-leap 16.0: yasm 1.3.0-160000.2.2 Β· Artistic-1.0 AND BSD-2-Clause AND BSD-3-Clause AND GPL-2.0-or-later AND LGPL-2.0-or-later
- ubuntu jammy: yasm 1.3.0-2.1
- ubuntu noble: yasm 1.3.0-4
- ubuntu questing: yasm 1.3.0-7
- ubuntu resolute: yasm 1.3.0-8
- ubuntu stonking: yasm 1.3.0-8
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms