Skip to content

hexclover/better_irsim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

better_irsim

Dependencies

  • ocaml >= 4.14
  • dune
  • ppx_deriving
  • angstrom

Build & Run

This will build the default targets (the library and the CLI program):

$ dune build

This will run the CLI program:

$ dune exec irsim_cli [args]

This will install the program to the home directory (the binary will be called irsim_cli):

$ dune build @install
$ dune install

For usage and options see irsim_cli -help.

The GUI is being worked on.

TODO

  • More options: Limit time / number of instructions to run; trap; etc.
  • Document the syntax
  • Better parsing error messages
  • Closely imitate the original behavior wrt immediates and arithmetic

About

An improved simulator for the IR used in Nanjing University's compiler course (https://cs.nju.edu.cn/changxu/2_compiler/index.html)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages