LTO-DUMP(1)
π LTO-DUMP(1) β the lto-dump manual, but make it make sense
okay bestie, welcome to lto-dump, a GNU thing, section 1 of the manual π this is the whole page, no skips, no skimming, we're reading it together like it's the group chat π«Ά
β¨ NAME β¨
lto-dump β the tool for dumping LTO object files πΈ
π¦ SYNOPSIS π¦
lto-dump [-list]
[-demangle]
[-defined-only]
[-print-value]
[-name-sort]
[-size-sort]
[-reverse-sort]
[-no-sort]
[-symbol=]
[-objects]
[-type-stats]
[-tree-stats]
[-gimple-stats]
[-dump-level=]
[-dump-body=]
[-help] lto-dump
π DESCRIPTION π
so lto-dump is the lil tool you pull up alongside GCC when you wanna dump your link time optimization object files π that's it, that's the whole job. it's giving sidekick energy and honestly? iconic.
π OPTIONS π
every single flag, right here, no gatekeeping β¨
-listβ dumps you the list of details for the functions and the variables π the whole roster, both kinds.-demangleβ dumps the demangled output, so the names actually look like names instead of alphabet soup π-defined-onlyβ dumps only the defined symbols, nothing else, we're being picky today π-print-valueβ dumps the initial values of the variables π so you can see what they started out as.-name-sortβ sorts the symbols alphabetically π€ abc order, very organized of you.-size-sortβ sorts the symbols according to size π lil guys first, or big guys first, depending.-reverse-sortβ dumps the symbols in reverse order π the sort, but backwards.-no-sortβ dumps the symbols in order of occurrence π¦ no sorting, just vibes, exactly how they showed up.-symbol=β dumps the details of a specific symbol π you tell it which one.-objectsβ dumps the details of the LTO objects π-type-statsβ dumps the statistics of tree types π³ numbers about types, go off.-tree-statsβ dumps the statistics of trees π² yes, a different tree thing.-tree-stats-adjacent but make it gimple:-gimple-statsβ dumps the statistics of gimple statements π gimple stats, slay.-dump-level=β for deciding the optimization level of body β you pass the level.-dump-body=β dumps the specific gimple body π§ you say which body.-helpβ displays the dump tool help π«Ά the classic. the moment we all need.
π COPYRIGHT π
Copyright (c) 2017-2022 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with the Invariant Sections being "GNU General Public License" and "Funding Free Software", the Front-Cover texts being (a) (see below), and with the Back-Cover Texts being (b) (see below). A copy of the license is included in the gfdl(7) man page. π
(a) The FSF's Front-Cover Text is:
A GNU Manual
(b) The FSF's Back-Cover Text is:
You have freedom to copy and modify this GNU Manual, like GNU
software. Copies published by the Free Software Foundation raise
funds for GNU development.
and that's the page, bestie, you ate it π this was gcc-12.5.0, dated 2025-07-11 β yeah it's the LTO-DUMP(1) one, we're done here, go dump something β¨ππ¦
π¦ where this page comes from
- ubuntu questing: gcc-12-arc-linux-gnu 12.5.0-6ubuntu1cross1
- ubuntu resolute: gcc-12-arc-linux-gnu 12.5.0-9ubuntu1cross1
- ubuntu stonking: gcc-12-arc-linux-gnu 12.5.0-9ubuntu1cross1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms