LLVM-AS(1)
π LLVM-AS β the LLVM assembler, bestie edition π
okay so this is llvm-as from the LLVM manual, and she is iconic. sit down, grab a strawberry, we're learning assembly-to-bitcode today πβ¨
β¨ NAME β¨
llvm-as β the LLVM assembler. that's it, that's her π
πΈ SYNOPSIS πΈ
llvm-as [options] [filename]
π¦ DESCRIPTION π¦
so llvm-as is the LLVM assembler, no cap. she reads a file full of human-readable LLVM assembly language, translates all of it into LLVM bitcode, and then writes the result either into a file or straight to standard output. main character energy fr π
if filename is omitted, or if it's literally just -, then llvm-as reads its input from standard input. yes, she's flexible like that π«Ά
now if you don't specify an output file with the -o option, llvm-as decides where the output goes by following these rules:
- if the input is standard input, then the output is standard output. symmetrical, we love her π
- if the input is a file that ends with
.ll, then the output file has the same name, except the suffix gets changed to.bc. - if the input is a file that does not end with the
.llsuffix, then the output file has the same name as the input file, except that the.bcsuffix is appended to it. appended, not replaced β don't get it twisted bestie π
π OPTIONS π
-fβ enables binary output on terminals. normally,llvm-aswill straight-up refuse to write raw bitcode output if the output stream is a terminal (she's shy like that π). with this option though?llvm-aswill write raw bitcode regardless of what the output device is. no vibes check, just output π₯-helpβ prints a summary of the command line options. the "wait what were the flags again" button, we've all been there π-ofilenameβ specify the output file name. and iffilenameis-, thenllvm-assends its output to standard output instead. dash means "to the void, but make it stdout" β¨
β EXIT STATUS β
if llvm-as succeeds, she exits with 0. periodt. otherwise, if an error occurs, she exits with a non-zero value. not zero = something went sideways, bestie π
π SEE ALSO π
llvm-dis(1) <llvm-dis.html>as(1)
(the reverse direction and the classic, respectively β iykyk)
πΈ AUTHOR πΈ
maintained by the LLVM Team (https://llvm.org/). they keep her fed and hydrated π«Ά
π COPYRIGHT π
2003-2026, LLVM Project
okay that's the whole page, and yes she really is from the LLVM project, version/date stamped 2026-07-16, page 22 of the LLVM-AS(1) manual π§ now go compile something gorgeous, bestie π
β¨
π¦ where this page comes from
- fedora 44: llvm 22.1.8-4.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 44: llvm 22.1.8-4.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms