about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-07-22 17:40:10 -0700
committerKartik Agaram <vc@akkartik.com>2019-07-22 17:40:10 -0700
commit372ec293670aded06f77f77fe836b279be31abfb (patch)
treed175abdf6738b2eaf1b11d17e1fe7cb373704251
parent4dc5dfa56f1ed1dbf31c1eaade739eda7ba6b046 (diff)
downloadmu-372ec293670aded06f77f77fe836b279be31abfb.tar.gz
5450
A couple of scripts that help debug discrepancies in the self-hosted translator.
-rwxr-xr-xsubx/diff_ntranslate6
-rwxr-xr-xsubx/diff_translate6
2 files changed, 12 insertions, 0 deletions
diff --git a/subx/diff_ntranslate b/subx/diff_ntranslate
new file mode 100755
index 00000000..a6fb3737
--- /dev/null
+++ b/subx/diff_ntranslate
@@ -0,0 +1,6 @@
+#!/usr/bin/env zsh
+
+subx translate $* -o a0.elf
+xxd a0.elf > a0.xxd
+./ntranslate $*  # into a.elf and a.xxd
+diff a0.xxd a.xxd
diff --git a/subx/diff_translate b/subx/diff_translate
new file mode 100755
index 00000000..d0224fd7
--- /dev/null
+++ b/subx/diff_translate
@@ -0,0 +1,6 @@
+#!/usr/bin/env zsh
+
+subx translate $* -o a0.elf
+xxd a0.elf > a0.xxd
+./translate $*  # into a.elf and a.xxd
+diff a0.xxd a.xxd
>
b38d7fff ^
a6d9bd9b ^


e3894819 ^
b38d7fff ^
a6d9bd9b ^



1ae4e0d9 ^
a6d9bd9b ^
31a9d39e ^

a6d9bd9b ^
2e534c0e ^
1ae4e0d9 ^
b94f150a ^
1ae4e0d9 ^
fbf0536d ^


fbf0536d ^
10f49c64 ^
b38d7fff ^
e3894819 ^
1ae4e0d9 ^
fc2046a1 ^
1ead3562 ^
38f0b91a ^
1ead3562 ^
70f70118 ^
04afb4b0 ^
426009da ^
b38d7fff ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68