LLVM-DIS(1)

πŸ’… LLVM-DIS(1) β€” the LLVM manual's disassembler page, bestie edition πŸŽ€

okay so you're looking at the llvm-dis page from the LLVM manual set, and honestly? it's a whole vibe. it's short, it's sweet, it's giving "small tool, big slay." let's get into it ✨

🌸 NAME 🌸

llvm-dis β€” the LLVM disassembler, periodt πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

llvm-dis [options] [filename]

that's it. that's the whole entrance. main character energy πŸ”₯

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea πŸ“: the llvm-dis command is the LLVM disassembler. it takes an LLVM bitcode file and converts it into human-readable LLVM assembly language. literally translating robot scribbles into something you can actually read. iconic behavior, no cap πŸ‘‘

if filename is omitted or specified as -, then llvm-dis reads its input from standard input. yes, like a little straw sipping your data πŸ₯€

and here's the part where you gotta pay attention, bestie 🫢 β€” if the input is being read from standard input, then llvm-dis will send its output to standard output by default. otherwise, the output will be written to a file named after the input file, with a .ll suffix added (any existing .bc suffix will first be removed). so thing.bc becomes thing.ll, and the .bc got ✨ yeeted ✨

you can override the choice of output file using the -o option. your file, your rules πŸ’β€β™€οΈ

✨ OPTIONS ✨

  • -f β€” enable binary output on terminals. normally, llvm-dis will refuse to write raw bitcode output if the output stream is a terminal. with this option, llvm-dis will write raw bitcode regardless of the output device. it's like "bestie i know you said no but i'm doing it anyway" 😭 use with intention, fr fr.
  • -help β€” print a summary of command line options. the "help me help you" option πŸŽ€
  • -o filename β€” specify the output file name. if filename is -, then the output is sent to standard output. lowkey the most useful flag here ngl ⭐

🌈 EXIT STATUS 🌈

if llvm-dis succeeds, it will exit with 0. πŸŽ‰ otherwise, if an error occurs, it will exit with a non-zero value. πŸ’€ that's the vibe check, and the vibe check does not negotiate.

πŸ‘€ SEE ALSO πŸ‘€

  • llvm-as(1) β€” the other half of this duo, iykyk 🧚

πŸ’œ AUTHOR πŸ’œ

maintained by the LLVM Team (https://llvm.org/). they're out here doing the lord's work, and we're obsessed 🫢

2003-2025, LLVM Project β€” a two-decade-plus glow-up, honestly iconic πŸ’…


aaaand that's the page, bestie! 🌟 this was LLVM 19, dated 2025-01-17, served fresh from the LLVM-DIS(1) corner of the manual. go forth disassemble, slay, and remember: .ll is the goal πŸ¦‹βœ¨

πŸ“¦ where this page comes from