summaryrefslogtreecommitdiffstats
path: root/makefile
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2018-12-04 21:51:39 +0100
committerNao Pross <naopross@thearcway.org>2018-12-04 21:51:39 +0100
commit5b8ba5a949627183c116d8216cfc6f2af0ea4d9b (patch)
tree39a135a1056a53adc0da424a6dfc4566d5d26da1 /makefile
parentAdd rough untested implementation for b32d (diff)
downloadbase32asm-5b8ba5a949627183c116d8216cfc6f2af0ea4d9b.tar.gz
base32asm-5b8ba5a949627183c116d8216cfc6f2af0ea4d9b.zip
Add perftest, update b32e to use a counter instead of mulHEADmaster
Diffstat (limited to 'makefile')
-rw-r--r--makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/makefile b/makefile
index 6210d85..3b1e40c 100644
--- a/makefile
+++ b/makefile
@@ -2,7 +2,14 @@
all: b32e b32d
.PHONY: test
-test: b32e b32d
+test: b32e
+ echo "hello!" | ./b32e
+ @printf '\n'
+ echo "hello!" | base32 -w0
+ @printf '\n'
+
+.PHONY: ftest
+ftest: b32e b32d
cat makefile | ./b32e > makefile.b32
cat makefile | base32 -w 0 > makefile.check.b32
diff makefile.b32 makefile.check.b32
@@ -11,6 +18,11 @@ test: b32e b32d
@# cat makefile.check.b32 | base32 -d
diff makefile makefile.decoded
+.PHONY: perftest
+perftest: b32e
+ time cat doc/64-ia-32-architectures-software-developer-instruction-set-reference-manual-325383.pdf | ./b32e > 64-ia-32-intel2.pdf.b32
+ time cat doc/64-ia-32-architectures-software-developer-instruction-set-reference-manual-325383.pdf | base32 -w 0 > 64-ia-32-intel2.pdf.b32
+
# encoder
b32e: b32e.o
ld -o $@ $<