risc386: Reduced instruction set i386 simulator
risc386 is a symbolic Intel(R) 386 assembler interpreter which allows infinitely many registers (temporaries). Its purpose is to debug the output of a MiniJava compiler (from Andrew Appel's book, Modern Compiler Implementation in JAVA) before register allocation has been performed.
risc386 supports only a small fragment of i386 instructions. It expects its input to be a list of procedures in .intel_syntax each of which is started by a label and terminated by a return statement.
Control flow is restricted, so, only jumps to procedure-local labels are allowed. Reading from an uninitialized memory location will lead to an exception.
[Skip to Readme]
Downloads
- risc386-0.0.20230928.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
Versions [RSS] | 0.0.20130624, 0.0.20130701, 0.0.20130718, 0.0.20130719, 0.0.20210125, 0.0.20210812, 0.0.20220128, 0.0.20230928 |
---|---|
Change log | CHANGELOG.md |
Dependencies | array (>=0.3 && <0.6), base (>=4.6 && <5), containers (>=0.3 && <1), mtl (>=2.2 && <2.4), pretty (>=1.0 && <1.2) [details] |
Tested with | ghc ==9.12.2, ghc ==9.10.2, ghc ==9.8.4, ghc ==9.6.7, ghc ==9.4.8, ghc ==9.2.8, ghc ==9.0.2, ghc ==8.10.7, ghc ==8.8.4, ghc ==8.6.5, ghc ==8.4.4, ghc ==8.2.2, ghc ==8.0.2 |
License | BSD-3-Clause |
Author | Andreas Abel with contributions by Robert Grabowski and Ulrich Schoepp |
Maintainer | Andreas Abel <andreas.abel@ifi.lmu.de> |
Revised | Revision 1 made by AndreasAbel at 2025-07-23T11:53:13Z |
Category | Compilers/Interpreters, Education |
Home page | https://github.com/andreasabel/risc386 |
Source repo | head: git clone https://github.com/andreasabel/risc386.git |
Uploaded | by AndreasAbel at 2023-09-28T19:25:16Z |
Distributions | NixOS:0.0.20230928 |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Executables | risc386 |
Downloads | 3650 total (10 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs not available [build log] Last success reported on 2023-09-28 [all 1 reports] |