mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-18 15:26:31 +00:00
Estimated hours taken: 0.1 bytecode/mdb.m: Simple Mercury driver for the bytecode interpreter. The driver allows us to initialise the Mercury runtime engine and various modules in libmercury without having to duplicate code from the runtime. This really is overkill and it would make sense to rewrite parts of the runtime so that initialisation and startup of compiled Mercury code are not so tightly coupled. May revisit this later.
This directory holds the source code for the Mercury bytecode utilities. `mdis' is the Mercury bytecode disassembler. `mbi' is the Mercury bytecode interpreter. `libmbi' is the same thing, minus main(). All exported symbols defined in modules in this directory should be prefixed with `MB_', for "Mercury Bytecode", to avoid clashes with names defined in other packages.