Wow, having to stare at disassembly too often, I really like this.
Makes it much faster to follow branches and can easily see what instructions correspond to source code lines, even though it's not very exact at higher optimization levels.
With recent versions of GNU objdump, you can use --source --visualize-jumps=color and perhaps also --reloc or --dynamic-reloc for a similar experience with the native toolchain. (Unfortunately, -S/--source absolutely sucks for executables compiled at -O2.)
Other tricks include --no-addresses --no-show-raw-insn, which make the disassembly decently diffable.
Love lensm! I've used it on several occasions to teach people about inlining, bounds check removals, and other performance related topics that are best highlighted by actually seeing differences in assembly. I find it's easier for people to understand what is actually happening under the hood than just tell them "do this and it's faster".
I also highly recommend following the creator. I'm always impressed with anything Egon creates.
vardump|2 years ago
Makes it much faster to follow branches and can easily see what instructions correspond to source code lines, even though it's not very exact at higher optimization levels.
This should be integrated in all IDEs.
mananaysiempre|2 years ago
Other tricks include --no-addresses --no-show-raw-insn, which make the disassembly decently diffable.
PhilipRoman|2 years ago
It's meant for reverse engineering but I use it for debugging purposes too
c7DJTLrn|2 years ago
jcul|2 years ago
Though I haven't tried it, on mobile right now.
brancz|2 years ago
I also highly recommend following the creator. I'm always impressed with anything Egon creates.
throwaway29303|2 years ago
https://news.ycombinator.com/item?id=32138111 - Lensm, a Tool for Viewing Disassembly (2022)
https://news.ycombinator.com/item?id=32133394 - Lensm: Go Assembly and Source Viewer (2022)
djmips|2 years ago
speps|2 years ago
fitz-re|2 years ago
unknown|2 years ago
[deleted]