mm/asmdiff.sh
2020-01-25 00:22:56 -06:00

10 lines
311 B
Bash

#!/bin/bash
OBJDUMP="${MIPS_BINUTILS_PREFIX}objdump -D -z -mmips -EB -j .text -j .data -j .rodata"
FORMATTER="sed '/^0/!s/.*://'"
$OBJDUMP build/src/test.o | sed '1,6d; /^0/!s/.*://' > test.dump
$OBJDUMP $1 | sed '1,6d; /^0/!s/.*://' > comp.dump
diff -y test.dump comp.dump > diff.dump
rm test.dump comp.dump