LLVM-DIS(1)

πŸ“¦
version 13.0.1 Β· 5 versions
, in ubuntu jammy

πŸ’… LLVM-DIS(1) β€” the LLVM disassembler, bestie

Okay so picture this: you've got this LLVM bitcode file, right? And it's all binary and mysterious and lowkey unreadable. Enter llvm-dis, the LLVM disassembler, which is literally the tool that takes that bitcode and converts it into human-readable LLVM assembly language. It's giving translator, it's giving "let me make this make sense for you." Obsessed.


✨ SYNOPSIS ✨

llvm-dis [options] [filename]

πŸ¦‹ DESCRIPTION πŸ¦‹

The llvm-dis command is the LLVM disassembler, periodt. It takes an LLVM bitcode file and converts it into human-readable LLVM assembly language. Main character energy fr fr.

If filename is omitted or specified as -, llvm-dis reads its input from standard input. No cap, that's just how it works.

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). You can override the choice of output file using the -o option, iykyk.


πŸŽ€ 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 giving "I do what I want" energy πŸ’…
  • -help β€” Print a summary of command line options. A little cheat sheet, a lil snack, we love to see it.
  • -o filename β€” Specify the output file name. If filename is -, then the output is sent to standard output. Slay.

πŸ’€ 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, zero is the good one, got it? 🫢


🌈 SEE ALSO 🌈

llvm-as(1)


πŸ‘‘ AUTHOR πŸ‘‘

Maintained by the LLVM Team (https://llvm.org/). Iconic behavior, honestly.


2003-2023, LLVM Project


That's the whole vibe, bestie. Go disassemble something and slay βœ¨πŸ’–πŸ¦‹

Source: LLVM Project β€” version dated 2023-07-14 πŸŽ€

πŸ“¦ where this page comes from