mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-20 11:54:02 +00:00
Estimated hours taken: 2 Simplify the Mmakefiles. Fix a few minor latent bugs. */Mmakefile: - Factor out some common code by defining a new variable M_ENV which holds settings of environment variables for mmc, mgnuc, etc. - For consistency, always override MERCURY_C_ALL_INCL_DIRS rather than passing extra `-I' options to mgnuc. - Make sure to always include `$(BOEHM_GC)/include' in the search path, so that it will work if we try to compile with `-O6'. - Make sure to always include `--cflags $(ALL_CFLAGS)' in MCS, so that the EXTRA_CFLAGS etc. will get passed down to gcc via mmc. - Make sure that the Mmakefiles in all directories set all the MC* variables: MCPI, MCSI, MCOI, MCTOI, etc.
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.