Documentation
¶
Overview ¶
Command ixdiff compares the assembly of two binaries.
It is intended for understanding how compiler or build-flag changes affect the generated code: which functions changed, by how much, and what the instruction-level differences are.
Usage:
ixdiff <old> <new> summary and top-N tables ixdiff --fn runtime.mapaccess1 a b assembly diff of one function ixdiff --top 100 --sort insts a b rank by instruction-count delta
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
disasm
Package disasm decodes machine code into assembly instructions using the golang.org/x/arch decoders, without spawning external tools.
|
Package disasm decodes machine code into assembly instructions using the golang.org/x/arch decoders, without spawning external tools. |
|
fndiff
Package fndiff pairs the functions of two binaries and classifies how each pair differs, cheaply enough to handle very large binaries: only functions whose raw bytes differ are ever disassembled.
|
Package fndiff pairs the functions of two binaries and classifies how each pair differs, cheaply enough to handle very large binaries: only functions whose raw bytes differ are ever disassembled. |
|
objfile
Package objfile loads executable binaries into a format-independent representation: the machine architecture and the set of functions with their addresses, sizes, and machine code.
|
Package objfile loads executable binaries into a format-independent representation: the machine architecture and the set of functions with their addresses, sizes, and machine code. |
|
testbin
Package testbin compiles the fixture program in testdata/src into binaries for tests.
|
Package testbin compiles the fixture program in testdata/src into binaries for tests. |
|
Package ixdiff compares the assembly of two compiled binaries.
|
Package ixdiff compares the assembly of two compiled binaries. |
Click to show internal directories.
Click to hide internal directories.