LLVM-AS(1)

πŸ“¦
version 16.0.6 Β· 3 versions
, in ubuntu noble

✨ LLVM-AS ✨

okay bestie, welcome to the llvm-as page β€” that's the LLVM assembler, living in section 1 of the LLVM manual πŸ’…


🌸 NAME 🌸

llvm-as β€” the LLVM assembler, and yes she's that girl πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

llvm-as [options] [filename]

πŸ’– DESCRIPTION πŸ’–

okay so llvm-as is the LLVM assembler. no cap. she reads a file that's full of human-readable LLVM assembly language, translates it into LLVM bitcode, and then writes the result either into a file or straight to standard output. it's giving translator, it's giving glow-up, she ate πŸ’…

if filename is omitted, or if it's literally -, then llvm-as takes her input from standard input. she's flexible like that 🫢

and if you don't specify an output file with the -o option? she follows these rules to figure out where her output goes, lowkey iconic behaviour:

  • 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 (she has boundaries πŸ’€). with this option, llvm-as will write raw bitcode regardless of the output device. no vibe check, just send it.
  • -help β€” Print a summary of command line options. she'll tell you everything she can do, main character energy fr fr πŸ‘‘
  • -o filename β€” Specify the output file name. and if filename is -, then llvm-as sends its output to standard output. classic move 🌸

πŸ’€ EXIT STATUS πŸ’€

if llvm-as succeeds, she exits with 0. slay. otherwise, if an error occurs, she exits with a non-zero value. sad girl hours 😭


πŸŽ€ SEE ALSO πŸŽ€

llvm-dis(1), as(1)

go read those too, bestie, iykyk 🧚


πŸ’œ AUTHOR πŸ’œ

Maintained by the LLVM Team (https://llvm.org/). shoutout to the whole team, they're carrying this whole operation 🫢


2003-2024, LLVM Project


okay that's the whole page!! mwah πŸ’‹ one last thing for the sign-off β€” this lil page is section 15 of the LLVM manual, dated 2024-04-14, and it's filed under LLVM-AS(1). go assemble something gorgeous, bestie πŸŒŸπŸ’–

πŸ“¦ where this page comes from