#universal #machine #instructions #file #input #stdin #icfp

bin+lib rumdump

A simple object file dumper for the UM (ICFP 2006) 14-instruction architecture

3 releases (1 stable)

1.0.0 Apr 10, 2024
0.2.0 Nov 26, 2023
0.1.0 Nov 23, 2023

#50 in #universal

Download history 26/week @ 2024-07-28 12/week @ 2024-09-22 22/week @ 2024-09-29

132 downloads per month

MIT license

21KB
238 lines

This is a simple binary to disassemble (much like objdump) a Universal Machine binary.

This is primarily intended for the University of Rhode Island course CSC411, but is applicable to the "Universal Machine" from ICFP 2006.

Usage: rumdump [um_binary]

If no argument is given, input is expected on STDIN.

This relies on ANSI terminal colors, and is currently display optimized for programs of fewer than 1 million instructions. It will work with larger programs, but display won't align perfectly.

Dependencies

~2.5MB
~51K SLoC