LLVM-SIZE(1)

πŸ’– LLVM-SIZE(1) πŸ’–

okay so bestie, welcome to the llvm-size manual page β€” it lives in the User Commands section of the manual, and it's giving "i measure how big your object files are and i do it flawlessly" energy. pull up a chair, we're doing this together 🫢


✨ NAME ✨

llvm-size</purl> β€” the manual page for llvm-size 14, aka your girl who dumps object sizes πŸ’…


🌸 DESCRIPTION 🌸

OVERVIEW: LLVM object size dumper πŸ”₯

USAGE:

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

so like. you hand it some input object files. it tells you how big stuff is. no cap, that's the whole vibe ✨


πŸŽ€ OPTIONS πŸŽ€

okay here's the menu, and yes we're going through every single one, because every flag matters and i love them all πŸ’–

  • -A β€” Alias for --format πŸ¦‹
  • -B β€” Alias for --format πŸ¦‹
  • --common β€” Print common symbols in the ELF file. When you're using Berkeley format, this gets added to bss πŸ‘‘
  • -d β€” Alias for --radix=10 πŸ”’
  • --format=<value> β€” Specify output format ✨
  • --help β€” Display this help πŸ™ˆ
  • -h β€” Alias for --help πŸ™ˆ
  • -m β€” Alias for --format πŸ¦‹
  • -o β€” Alias for --radix=8 πŸ”’
  • --radix=<value> β€” Print size in radix πŸ”’
  • --totals β€” Print totals of all objects β€” Berkeley format only ⚠️ (yes, only Berkeley, don't come for me)
  • -t β€” Alias for --totals ⭐
  • --version β€” Display the version 🏷️
  • -x β€” Alias for --radix=16 πŸ”’

🧚 OPTIONS (Mach-O specific) 🧚

special little section for the Mach-O girlies 🌈

  • --arch=<value> β€” architecture(s) from a Mach-O file to dump πŸ’œ
  • -l β€” When format is darwin, use long format to include addresses and offsets πŸ“

Pass @FILE as argument to read options from FILE. yes, literally, at-sign then the file name. iconic behaviour fr fr πŸ’…

and that's the whole page bestie, you ate that πŸ“

this was llvm-size 14, dated May 2025 β€” mwah, stan, periodt πŸ‘‘πŸ’–βœ¨

πŸ“¦ where this page comes from