Next: Foreign language interface, Previous: Environment, Up: Top [Contents][Index]
The Mercury compiler takes special advantage of certain extensions provided by GNU C to generate much more efficient code. We therefore recommend that you use GNU C for compiling Mercury programs. However, if for some reason you wish to use another compiler, it is possible to do so. Here is what you need to do.
MERCURY_DEFAULT_GRADE
environment variable, by adding a line
‘GRADE=…’ to your ‘Mmake’ file, or by using the
‘--grade’ option to ‘mmc’. (You will also need to install
those grades of the Mercury library, if you have not already done so.)