LLVM-AS(1)

πŸ“¦ version 15.0.7, in opensuse-leap 16.0

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

okay so welcome to the LLVM manual page for llvm-as, aka the glow-up station where your human-readable assembly becomes ✨bitcode✨. grab a strawberry drink πŸ“ and let's go.


🌸 NAME 🌸

llvm-as β€” the LLVM assembler, no cap


πŸ¦‹ SYNOPSIS πŸ¦‹

llvm-as [options] [filename]

πŸ’– DESCRIPTION πŸ’–

llvm-as is the LLVM assembler. it reads a file that's full of human-readable LLVM assembly language, translates it into LLVM bitcode, and writes the result into a file or straight to standard output. it's giving translator! it's giving main character energy! πŸ‘‘

if filename is omitted, or if it's literally just -, then llvm-as reads its input from standard input. stdin girlies rise 🫢

if you didn't specify an output file with the -o option, then llvm-as sends its output to a file or to standard output by following these rules β€” and bestie, they're lowkey iconic:

  • 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 is of the same name, except 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.

✨ OPTIONS ✨

  • -f β€” enable binary output on terminals. normally llvm-as will refuse to write raw bitcode output if the output stream is a terminal, which is honestly so valid of it πŸ›‘ but with this option, llvm-as will write raw bitcode regardless of the output device. it does not care. it will not be stopped. πŸ’€
  • -help β€” print a summary of command line options. the "wait what were the flags again" button πŸ™ˆ
  • -o filename β€” specify the output file name. if filename is -, then llvm-as sends its output to standard output.

🌈 EXIT STATUS 🌈

if llvm-as succeeds, it will exit with 0. otherwise, if an error occurs, it will exit with a non-zero value. simple as that, periodt. πŸŽ€


πŸ‘€ SEE ALSO πŸ‘€

(the reverse-glow-up and the classic, iykyk)


🧚 AUTHOR 🧚

maintained by the LLVM Team (https://llvm.org/). they're the blueprint fr fr πŸ’œ


2003-2023, LLVM Project


ok that's the whole thing bestie, go forth and assemble πŸ’…πŸ”₯ slay

sign-off: this page is number 15, dated 2023-01-14, from the LLVM manual set, and it's called LLVM-AS(1) β€” mwah, take care of her πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from