LLVM-AS(1)
π 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
.llsuffix, then the output file has the same name as the input file, except that the.bcsuffix is appended.
β¨ OPTIONS β¨
-fβ enable binary output on terminals. normallyllvm-aswill 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-aswill 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 π-ofilename β specify the output file name. if filename is-, thenllvm-assends 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 π
β COPYRIGHT β
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
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- opensuse-leap 16.0: llvm15 15.0.7-160000.3.1 Β· Apache-2.0 WITH LLVM-exception AND NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms