Daniel Lemire's blog

, 3 min read

Looking at assembly code with gdb

5 thoughts on “Looking at assembly code with gdb”

  1. George Spelvin says:

    I generally use objdump -dr to look at generated code.

    While gdb can do it, objdump is the tool designed for the job.

    (There are arguments to select the range objdump disassembles, but I find it easier to just pipe the output through less and search.)

    1. I prefer gdb but it is true that objdump works well too.

  2. Oren T says:

    Godbolt?

    1. Godbolt is great but it is not always possible to use it conveniently.

  3. Have you tried radare? Would be interesting to know your review of it.