#!/bin/sh

# compile the C version of the compiler
gcc -Wall -o ctiny tiny.c

# compile the interpreter
gcc -Wall -o tintr tintr.c

# compile the tiny compiler using the C version, saving the generated virtual machine code:
./ctiny tiny.t >one.asm

# compile the tiny compiler with itself, saving the generated virtual machine code:
./tintr one.asm <tiny.t >two.asm

# compare that the two VM code files are the same:
diff one.asm two.asm
