A library to write (embed) ABS-subset programs in Haskell, and execute them at runtime by an included Haskell interpreter.
You need a fairly-recent GHC compiler or Haskell Platform
Run inside the repository directory:
cabal install
The ABS-subset benchmarks are under benchmarks/
directory, embedded as Haskell.
After installing this library, you can compile them with:
ghc --make benchmarks/<FOLDER>/progs/ExampleName.hs
Execute an example with:
./benchmarks/<FOLDER>/progs/ExampleName
which will output the number of steps executed, the final heap, and the heap counter, e.g.:
Real steps: 6
Total steps: 6
Object Heap with array-size:10{
(0,([(0,-123),(1,8),(2,1),(3,9),(4,1)],fromList []))
}
Future Heap with array-size:10{
(1,Right (-123))
}
Counter: 2
Run inside the repository directory:
cabal configure
cabal haddock
The documentation will appear under dist/doc/html