LLVM-AS(1)

🌸 NAME 🌸

llvm-as β€” LLVM assembler. and the manual page title is literally LLVM-AS(1) from the LLVM fam, so u know exactly what's up, bestie. πŸ’–

✨ SYNOPSIS ✨

llvm-as [options] [filename]

πŸ’– DESCRIPTION πŸ’–

okay so llvm-as is the LLVM assembler. It reads a file containing human-readable LLVM assembly language, translates it to LLVM bitcode, and writes the result into a file or to standard output. no cap, that's the whole glow-up: assembly in, bitcode out. ✨

If filename is omitted or is -, then llvm-as reads its input from standard input. yes, stdin girlies, she's got u. 🫢

If an output file is not specified with the -o option, then llvm-as sends its output to a file or standard output by following these rules, periodt:

  • If the input is standard input, then the output is standard output. πŸ’…
  • 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. πŸŽ€

πŸ’… OPTIONS πŸ’…

  • -f β€” Enable binary output on terminals. Normally, llvm-as will refuse to write raw bitcode output if the output stream is a terminal. With this option, llvm-as will write raw bitcode regardless of the output device. literally override the terminal vibe check, respectfully. πŸ”₯
  • -help β€” Print a summary of command line options. the "what are my options" button, iconic. πŸ‘‘
  • -o filename β€” Specify the output file name. If filename is -, then llvm-as sends its output to standard output. choose ur own destiny, bestie. πŸ’«

πŸ”₯ EXIT STATUS πŸ”₯

If llvm-as succeeds, it will exit with 0. Otherwise, if an error occurs, it will exit with a non-zero value. so 0 is the slay; anything else is the "oop, something went sideways" signal. 😭

πŸ‘€ SEE ALSO πŸ‘€

the whole friend group, go say hi. 🫢

πŸ’œ AUTHOR πŸ’œ

Maintained by the LLVM Team (https://llvm.org/). protect them at all costs. πŸ’œ

2003-2023, LLVM Project β€” the full copyright era, no cuts. πŸŽ€


πŸ’– okay that's the whole LLVM-AS(1) page, bestie β€” source/version vibes: LLVM-AS(1) from the LLVM manual, dated 2023-12-01, page 17 if ur keeping score. mwah, go assemble something iconic. πŸ’…βœ¨

πŸ“¦ where this page comes from