mm/asmdiff.sh

10 lines
311 B
Bash
Raw Normal View History

2018-11-09 02:58:39 +00:00
#!/bin/bash
2020-01-25 06:22:56 +00:00
OBJDUMP="${MIPS_BINUTILS_PREFIX}objdump -D -z -mmips -EB -j .text -j .data -j .rodata"
2018-11-09 02:58:39 +00:00
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