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 Β© 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