Skip to content

Instantly share code, notes, and snippets.

@ascherer
Last active January 28, 2017 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ascherer/59a4c6775fab2268b62d271d3e3fd1ee to your computer and use it in GitHub Desktop.
Save ascherer/59a4c6775fab2268b62d271d3e3fd1ee to your computer and use it in GitHub Desktop.
Testsuite for MMIXware

The MMIX Supplement to The Art of Computer Programming

Set up the testgen utility

Download testgen.l, symtab.[ch], and auxiliary stuff:

wget -r --no-parent -nH http://mmix.cs.hm.edu/mmixmasters/tools/

Install system package flex: sudo apt install flex.

Step into mmixmasters/tools/ and run make testgen (or any of the other targets in Makefile).

Get programs and testcases

Download wget -r --no-parent -nH http://mmix.cs.hm.edu/supplement/.

Rudimentary usage

Step into the individual example directories under supplement and invoke

../../mmixmasters/tools/testgen *.tst
mmixal -b 250 *.mms
mmix *.mmo

[You will have to increase -b 270 for 5.2.5/{10,11}-ex15.tst,mms because of extra-long lines.]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment