LLVM-SIZE(1)

πŸ’– LLVM-SIZE(1): llvm-size is here to measure ur objects πŸ’–

🌸 NAME 🌸

llvm-size β€” manual page for llvm-size 18 πŸ’… this is literally the one, bestie.

πŸ¦‹ DESCRIPTION πŸ¦‹

OVERVIEW: LLVM object size dumper. It’s giving β€œI inspect object files and dump their sizes” energy, and honestly? iconic.

USAGE:

build-llvm/tools/clang/stage2-bins/bin/llvm-size [options] <input object files>

Run it with [options] plus those <input object files> and you’re good 🫢.

πŸ’… OPTIONS: πŸ’…

  • -A β€” alias for --format ✨
  • -B β€” alias for --format ✨
  • --common β€” prints common symbols in the ELF file. When using Berkeley format, this is added to bss πŸ‘‘
  • -d β€” alias for --radix=10
  • --format=<value> β€” specify output format πŸŽ€
  • --help β€” displays this help, bestie
  • -h β€” alias for --help
  • -m β€” alias for --format
  • -o β€” alias for --radix=8
  • --radix=<value> β€” prints the size in radix πŸ”’
  • --totals β€” prints totals of all objects β€” Berkeley format only πŸ’€
  • -t β€” alias for --totals
  • --version β€” displays the version 🌈
  • -x β€” alias for --radix=16

πŸ¦‹ OPTIONS (Mach-O specific): πŸ¦‹

  • --arch=<value> β€” architecture(s) from a Mach-O file to dump 🧚
  • -l β€” when the format is darwin, use long format to include addresses and offsets ✨

Pass @FILE as argument to read options from FILE πŸ“ β€” yes, that’s the exact move.


xoxo, bestie 🫢 this page is from llvm-size 18, dated June 2025, and it’s literally LLVM-SIZE(1) signing off πŸ’–

πŸ“¦ where this page comes from