LLVM-AS(1)
π LLVM-AS(1) β the LLVM manual, assembler edition β¨
okay so bestie, you're looking at llvm-as from the LLVM manual (that's the LLVM-AS(1) header btw, it's giving official), and honestly? she's iconic. let's get into it π
πΈ NAME πΈ
llvm-as β the LLVM assembler. that's it. that's the whole vibe. π
β¨ SYNOPSIS β¨
llvm-as [options] [filename]
π¦ DESCRIPTION π¦
so llvm-as is literally the LLVM assembler, no cap. it reads a file that's full of human-readable LLVM assembly language, translates it all into LLVM bitcode, and then writes the result out β either into a file or straight to standard output. main character energy, honestly. π
if filename is omitted, or if it's just -, then llvm-as reads its input from standard input. periodt.
now, if you don't specify an output file with the -o option, llvm-as picks where the output goes by following these rules, and yes you need to know all of them π
:
- If the input is standard input, then the output is standard output. slay, symmetry.
- 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, she's just out here renaming your files for you. very demure, very mindful. π§
π₯ OPTIONS π₯
-fβ Enable binary output on terminals. normallyllvm-aswill refuse to write raw bitcode output if the output stream is a terminal (she's got boundaries, okay?) but with this option,llvm-aswill write raw bitcode regardless of the output device. yes, regardless. no cap. π-helpβ Print a summary of command line options. a little menu of what she can do, iykyk.-ofilename β Specify the output file name. and if filename is-, thenllvm-assends its output to standard output. classic. π«Ά
β EXIT STATUS β
if llvm-as succeeds, she will exit with 0. otherwise, if an error occurs, she will exit with a non-zero value.π that's the whole story, she either ate or she didn't.
π SEE ALSO π
llvm-dis(1), as(1) β go read those too, bestie, they're in the same universe π
π AUTHOR π
Maintained by the LLVM Team (https://llvm.org/). the actual keepers of the flame π―οΈ
π COPYRIGHT π
2003-2023, LLVM Project β long legacy, still thriving β¨
ok that's the whole page, you're welcome π go assemble something iconic, bestie πΈπ¦π
signing off from the bottom of the page: this little masterpiece came from LLVM, version 13, dated 2023-07-14 β so if anyone asks, that's the tea πβ¨π
π¦ where this page comes from
- ubuntu jammy: llvm-13 1:13.0.1-2ubuntu2.2 Β· APACHE-2-LLVM-EXCEPTIONS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms