INTEL2GAS(1)

πŸ’– INTEL2GAS(1) πŸ’–

okay bestie, gather round, because we're talking about intel2gas β€” a little section 1 (General Commands Manual) girlie who does the absolute most when it comes to moving your assembly back and forth. no cap. πŸ¦‹


✨ NAME ✨

intel2gas β€” convert between NASM assembly and GAS assembly language


🌸 SYNOPSIS 🌸

intel2gas [-higmtcIdV] [-o outfile] [infile]

πŸ’… DESCRIPTION πŸ’…

so, real talk: this manual page is a brief lil rundown of the intel2gas command, nothing more. it literally exists because the Debian GNU/Linux distribution needed one β€” the original program doesn't ship with a manual page at all. so Alexander said "fine, I'll do it myself" and here we are. πŸ’β€β™€οΈ

intel2gas is a small text parser, and her whole job is converting assembler source written in NASM syntax over to gas syntax. and ngl, these days she's doing it the other way around way more often too. versatile queen. πŸ”₯


πŸŽ€ OPTIONS πŸŽ€

  • -h β€” show a summary of the options. the vibe check, basically.
  • -i β€” convert from intel to at&t format. this one's the default, so it's giving main character energy. πŸ‘‘
  • -g β€” convert from at&t to intel format.
  • -m β€” convert from masm to at&t format.
  • -t β€” convert from tasm to at&t format.
  • -c β€” understand C style comments. she's cultured like that. ✨
  • -I β€” convert inline assembler (intel to at&t only, okay? only that direction, don't get cute).
  • -d β€” output all % chars as %%. yes, every single one. doubled. iconic behavior.
  • -V β€” show version.
psst, also peep the synopsis: -o outfile is there to pick where the output lands, and infile is the thing you're feeding her. 🫢

🌈 ENVIRONMENT 🌈

  • I2G_DATA β€” set this if the syntax files aren't chilling in their default location. the value should be a path pointing to the directory that holds the subdirectories g2i, i2g and m2g. basically: "bestie, the files are over here." πŸ’œ

πŸ“ FILES πŸ“

  • /usr/share/intel2gas/{g2i,i2g,m2g}/* β€” syntaxfiles for the translation.

🧚 SEE ALSO 🧚

there's some other documentation floating around in the files README, INSTALL and DATAFILES, and they reside in /usr/share/doc/intel2gas. go read them, i promise they're not boring. (they might be a little boring. still read them.) πŸ“š


πŸ‘‘ AUTHORS πŸ‘‘

the author of the program is Mikko Tiihonen <mikko.tiihonen@hut.fi>. 🫢

this manual page was written by Alexander Zangerl <az@snafu.priv.at>, for the Debian GNU/Linux system β€” but it may be used by others, so share the love, it's not gatekept. πŸ’–


aaaand that's the whole page, bestie. intel2gas(1), straight out of the General Commands Manual, exactly as the footer says. slay, go convert some assembly, mwah πŸ’…βœ¨