LLVM-AS(1)
β¨ LLVM-AS β¨
ok so bestie, welcome to the llvm-as page β the one and only LLVM assembler, straight out of the LLVM manual. pull up a chair, we're gonna get you fluent fr fr π
πΈ SYNOPSIS πΈ
llvm-as [options] [filename]
π¦ DESCRIPTION π¦
llvm-as is the LLVM assembler β main character energy only π. What it does is: it reads a file stuffed with human-readable LLVM assembly language</>, translates all that into LLVM bitcode</>, and then writes the result out into a file or straight to standard output. iconic behaviour, no notes π
So okay, about filename β if you omit it entirely, or if you literally just pass -, then llvm-as reads its input from standard input</>. easy β¨
And if you don't specify an output file with the -o option, llvm-as will figure out where to send its output by following these rules (they're giving very organized, very demure):
- 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
.llsuffix, then the output file has the same name as the input file, except that the.bcsuffix is appended πΈ
like, it just knows. iykyk π
π OPTIONS π
-fβ enables binary output on terminals π₯. normallyllvm-aswill straight up refuse to write raw bitcode output if the output stream is a terminal (it's protective like that π). with this option,llvm-aswill write raw bitcode regardless of the output device. bold. love that for it.-helpβ prints a summary of the command line options β¨ your little cheat sheet.-ofilename β specify the output file name π. and if filename is-, thenllvm-assends its output to standard output. classic.
β EXIT STATUS β
If llvm-as succeeds, it will exit with 0 π slay.
Otherwise, if an error occurs, it will exit with a non-zero value π so like, watch for that.
π§ SEE ALSO π§
llvm-dis(1)<llvm-dis.html>as(1)
π Author π
Maintained by the LLVM Team (https://llvm.org/) π«Ά go give them a follow, honestly.
π Copyright π
2003-2026, LLVM Project
and that's the whole vibe check, bestie πβ¨ this page is from the LLVM manual, source/version 21, dated 2026-05-15 β go forth and assemble, you've got this fr fr ππ
π¦ where this page comes from
- fedora 44: llvm21 21.1.8-5.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 44: llvm21 21.1.8-5.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms