-
I'm confused by the
Why does the summary list 51, 56 and 60 lines of assembly, while the actual assembly displayed is 26, 26, and 25? The first list of numbers differs from the second. Additionally, the first list is increasing, while the second list is actually decreasing. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
They are calculated from the actual lines llvm produces. Those lines contain a bunch of redundant things that I could make it so numbers correspond to what the size that will be printed, but removing redundant labels is not linear in cost and can slow things down if your file is super chonky. Main goal for those numbers is to get you a high level overview where most of the code is and to indicate that there can be several functions with the same name. |
Beta Was this translation helpful? Give feedback.
They are calculated from the actual lines llvm produces. Those lines contain a bunch of redundant things that
cargo-show-asm
strips - labels that aren't used (pass-K
to see those) and some of the debug info - location directives, etc. You can pass-vvv
to see everything.I could make it so numbers correspond to what the size that will be printed, but removing redundant labels is not linear in cost and can slow things down if your file is super chonky.
Main goal for those numbers is to get you a high level overview where most of the code is and to indicate that there can be several functions with the same name.