LLVM-DIS(1)
π LLVM-DIS β the LLVM disassembler, bestie edition
okay so picture this: you've got a .bc file, right? it's giving β¨binaryβ¨, it's giving unreadable, it's giving absolutely nothing to the human eye. and llvm-dis? she's the translator. she takes that LLVM bitcode file and flips it into human-readable LLVM assembly language. that's it. that's the whole job. and she eats every time. π
β¨ SYNOPSIS β¨
llvm-dis [options] [filename]
π¦ DESCRIPTION π¦
The llvm-dis command is the LLVM disassembler, no cap. It takes an LLVM bitcode file and converts it into human-readable LLVM assembly language.
Now, about the filename β if you omit it, or you literally just pass a -? then llvm-dis reads its input from standard input. main character move, honestly.
And here's the part where the output goes, so listen up bestie, because it depends π:
- If the input is being read from standard input, then
llvm-diswill send its output to standard output by default. - Otherwise, the output gets written to a file named after the input file, with a
.llsuffix added β and btw, any existing.bcsuffix will first be removed. sothing.bcβthing.ll. slay. π
You can override the whole choice of output file using the -o option. you're in charge, periodt.
π OPTIONS π
-fβ Enable binary output on terminals. Normally,llvm-diswill refuse to write raw bitcode output if the output stream is a terminal. With this option,llvm-diswill write raw bitcode regardless of the output device. (yes she's stubborn. yes she'll do it anyway. π)-helpβ Print a summary of command line options. your little cheat sheet, your little bestie who tells you what's up. π«Ά-ofilename β Specify the output file name. If filename is-, then the output is sent to standard output. choose your own destiny, babe β¨
π EXIT STATUS π
If llvm-dis succeeds, it will exit with 0. π Otherwise, if an error occurs, it will exit with a non-zero value. π so like, check that exit code, fr fr.
π SEE ALSO π
(her counterpart. the assembler. the one who goes the other direction. iconic duo honestly π§)
π AUTHOR π
Maintained by the LLVM Team (<https://llvm.org/>).
πΈ COPYRIGHT πΈ
2003-2024, LLVM Project
ok that's the whole page, you're officially fluent in disassembly now, no cap. go turn some bitcode into art, bestie. π¦β¨
LLVM-DIS, manual section 1 β this version is dated 2024-07-18, and it's an LLVM page, so shoutout to the LLVM Project for the whole thing. mwah. π
π¦ where this page comes from
- fedora 43: llvm11 11.1.0-14.fc41 Β· NCSA
- fedora 43: llvm11 11.1.0-14.fc41 Β· NCSA
- fedora 44: llvm11 11.1.0-14.fc41 Β· NCSA
- fedora 44: llvm11 11.1.0-14.fc41 Β· NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms