LLVM-AS(1)

πŸ“¦
version 13.0.1 Β· 5 versions
, in ubuntu jammy

πŸ’… LLVM-AS(1) β€” the LLVM manual, assembler edition ✨

okay so bestie, you're looking at llvm-as from the LLVM manual (that's the LLVM-AS(1) header btw, it's giving official), and honestly? she's iconic. let's get into it πŸŽ€


🌸 NAME 🌸

llvm-as β€” the LLVM assembler. that's it. that's the whole vibe. πŸ’–


✨ SYNOPSIS ✨

llvm-as [options] [filename]

πŸ¦‹ DESCRIPTION πŸ¦‹

so llvm-as is literally the LLVM assembler, no cap. it reads a file that's full of human-readable LLVM assembly language, translates it all into LLVM bitcode, and then writes the result out β€” either into a file or straight to standard output. main character energy, honestly. πŸ‘‘

if filename is omitted, or if it's just -, then llvm-as reads its input from standard input. periodt.

now, if you don't specify an output file with the -o option, llvm-as picks where the output goes by following these rules, and yes you need to know all of them πŸ’…:

  • If the input is standard input, then the output is standard output. slay, symmetry.
  • If the input is a file that ends with .ll, then the output file is of the same name, except that the suffix is changed to .bc.
  • 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 is appended.

like, she's just out here renaming your files for you. very demure, very mindful. 🧚


πŸ”₯ OPTIONS πŸ”₯

  • -f β€” Enable binary output on terminals. normally llvm-as will refuse to write raw bitcode output if the output stream is a terminal (she's got boundaries, okay?) but with this option, llvm-as will write raw bitcode regardless of the output device. yes, regardless. no cap. πŸ’€
  • -help β€” Print a summary of command line options. a little menu of what she can do, iykyk.
  • -o filename β€” Specify the output file name. and if filename is -, then llvm-as sends its output to standard output. classic. 🫢

⭐ EXIT STATUS ⭐

if llvm-as succeeds, she will exit with 0. otherwise, if an error occurs, she will exit with a non-zero value.😭 that's the whole story, she either ate or she didn't.


🌈 SEE ALSO 🌈

llvm-dis(1), as(1) β€” go read those too, bestie, they're in the same universe πŸ’œ


πŸ‘‘ AUTHOR πŸ‘‘

Maintained by the LLVM Team (https://llvm.org/). the actual keepers of the flame πŸ•―οΈ


2003-2023, LLVM Project β€” long legacy, still thriving ✨


ok that's the whole page, you're welcome πŸ’– go assemble something iconic, bestie πŸŒΈπŸ¦‹πŸ’…

signing off from the bottom of the page: this little masterpiece came from LLVM, version 13, dated 2023-07-14 β€” so if anyone asks, that's the tea πŸŽ€βœ¨πŸ’œ

πŸ“¦ where this page comes from