A test script for wlp4gen

1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash
source /u/cs241/setup
g++ -std=c++14 wlp4gen.cc -o wlp4gen
wlp4c < test.wlp4 > test.correct.wlp4
cat test.wlp4 | wlp4scan | wlp4parse | ./wlp4gen > test.asm
cs241.linkasm < test.asm > test.merl
cs241.linker test.merl print.merl alloc.merl > test.mips
mips.twoints test.mips
mips.array test.mips