This file documents the Mercury implementation, version rotd-2021-05-04.
Copyright © 1995–2012 The University of Melbourne.
Copyright © 2013–2021 The Mercury team.
Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.
Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided also that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.
Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions.
This guide describes the compilation environment of Mercury — how to build and debug Mercury programs.
|• Introduction:||General overview.|
|• Filenames:||File naming conventions.|
|• Using mmc:||Compiling and linking programs with the Mercury compiler.|
|• Running:||Execution of programs built with the Mercury compiler.|
|• Using Mmake:||“Mercury Make”, a tool for building Mercury programs.|
|• Libraries:||Creating and using libraries of Mercury modules.|
|• Debugging:||The Mercury debugger ‘mdb’.|
|• Profiling:||Analyzing the performance of Mercury programs.|
|• Invocation:||List of options for the Mercury compiler.|
|• Environment:||Environment variables used by the compiler and utilities.|
|• C compilers:||How to use a C compiler other than GNU C.|
|• Foreign language interface:||Interfacing to other programming languages from Mercury.|
|• Stand-alone interfaces:||Calling procedures in Mercury libraries from programs written in other languages.|