mirror of
https://github.com/zeldaret/mm.git
synced 2026-06-26 09:44:29 -04:00
Add slightly better diffing tool
This commit is contained in:
+2
-1
@@ -14,4 +14,5 @@ __pychahe__/*
|
||||
*.pyc
|
||||
test.txt
|
||||
*.xlsx
|
||||
src/test.c
|
||||
src/test.c
|
||||
*.dump
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
MIPS_BINUTILS="mips-linux-gnu-"
|
||||
|
||||
OBJDUMP="${MIPS_BINUTILS}objdump -D -z -mmips -EB -j .text"
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user