LLVM-AS(1)

πŸ’… llvm-as β€” the LLVM assembler, bestie edition ✨

okay so real quick, this is the manual page for llvm-as from the LLVM crew, and I'm about to make it make sense. sit down, hydrate, let's go 🫢


🌸 NAME 🌸

llvm-as β€” the LLVM assembler. that's it, that's the name, iconic behavior honestly πŸ‘‘


✨ SYNOPSIS ✨

llvm-as [options] [filename]

look at her. so simple. so powerful. πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

so llvm-as is the LLVM assembler. what she does is: she reads a file that's got human-readable LLVM assembly language in it, translates all of that into LLVM bitcode, and then writes the result out into a file or straight to standard output. no cap, that's the whole job and she does it flawlessly πŸ’–

if filename is left out, or if it's just -, then llvm-as reads its input from standard input. mystery input, love that for her πŸ™ˆ

now, if you did not specify an output file with the -o option, then llvm-as decides where the output goes by following these rules, and you need to know them because they will absolutely come for you:

  • if the input is standard input, then the output is standard output. matching energies ✨
  • if the input is a file that ends with .ll, then the output file gets the same name, except the suffix gets changed to .bc. glow-up, but make it a file extension πŸ’…
  • if the input is a file that does not end with the .ll suffix, then the output file has the same name as the input file, except that the .bc suffix gets appended. so like, she just adds it on the end. periodt.

πŸ”₯ OPTIONS πŸ”₯

  • -f β€” enable binary output on terminals. normally llvm-as will straight up refuse to write raw bitcode output if the output stream is a terminal (she's got boundaries, respect them). with this option, llvm-as will write raw bitcode regardless of the output device. no vibe check, just vibes 🌈
  • -help β€” print a summary of command line options. your little cheat sheet, your study guide, your bestie 🧚
  • -o filename β€” specify the output file name. and if filename is -, then llvm-as sends its output to standard output. very demure, very mindful ⭐

πŸ’€ EXIT STATUS πŸ’€

if llvm-as succeeds, she exits with 0. slay. if an error occurs, she exits with a non-zero value. not slay, but at least you know 😭


πŸ‘‘ SEE ALSO πŸ‘‘

go read those too, iykyk πŸ’œ


πŸ“ AUTHOR πŸ“

maintained by the LLVM Team (https://llvm.org/). they're keeping the lights on, we love them for it 🌸


2003-2025, LLVM Project


and that's the whole page, bestie!! this one came from LLVM, version 14, dated 2025-05-22, and the manual itself is titled LLVM-AS(1). go assemble something iconic with it πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from