---
name: "mgnuc"
section: "1"
platform: "linux"
package: "mercury"
version: "0.10.1-3"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/mgnuc"
---

# mgnuc(1)

Mercury front-end to GNU C

```

```

## NAME

mgnuc - Mercury front-end to GNU C

## SYNOPSIS

mgnuc \[\<options\>\] \[-- \<gcc options\>\] files...

## NOTES

*mgnuc* is one of the development tools that are part of the Mercury distribution.

This manual page is limited to a brief summary. For further information see the Mercury User's Guide.

```

```

## OPTIONS

```
 -v, --verbose
```

```
	Echo gcc command before executing it.
```

```
 --no-ansi
```

```
	Don't pass `-ansi' to gcc.
	Use the full contents of system headers,
	rather than the ANSI subset.
```

```
 --no-check
```

```
	Don't enable any of gcc's warnings.
```

```
 --low-level-debug
```

```
	Enable low-level debugging of the C code. Useful only
	for Mercury system developers.
```

```
 -g, --c-debug
```

```
	Generate object files that can debugged with C debuggers
	such as gdb.
```

```
 --no-c-optimize
```

```
	Disable optimization by the C compiler.
```

```
 --inline-alloc
```

```
	Inline calls to the memory allocator.
```

```
 --split-c-files
```

```
	This option must be specified if the argument C files were
	generated by the Mercury compiler with --split-c-files.
```

## GRADE OPTIONS

```
 -s <grade>, --grade <grade>
```

```

```

```
 --target {il, c, java, asm}
```

```

```

```
 --il
```

```

```

```
 --asm-labels
```

```

```

```
 --gcc-non-local-gotos
```

```

```

```
 --gcc-global-registers
```

```

```

```
 -H, --high-level-code
```

```

```

```
 --parallel
```

```

```

```
 --gc {conservative, accurate, none}
```

```

```

```
 -p, --profiling
```

```

```

```
 --profile-calls
```

```

```

```
 --profile-time
```

```

```

```
 --profile-memory
```

```

```

```
 --use-trail
```

```

```

```
 --use-minimal-model
```

```

```

```
 --pic-reg
```

```

```

```
 --no-stack-trace
```

```

```

```
 --debug
```

```
	See the documentation in the "Invocation" section
	of the Mercury User's Guide.

```

## DESCRIPTION

This runs gcc with the appropriate options for compiling Mercury programs. Normally it invokes gcc in ANSI mode with almost all warnings enabled, but this can be changed using the \`--no-ansi' or \`--no-check' options.

## ENVIRONMENT VARIABLES

MERCURY\_C\_INCL\_DIR, MERCURY\_ALL\_C\_INCL\_DIRS, MERCURY\_DEFAULT\_GRADE.

## AUTHORS

The Mercury team.

See \<http://www.cs.mu.oz.au/mercury/contact/people.html\>.

## COPYRIGHT

This program and its documentation are copyright by the University of Melbourne. They may be copied only under the terms of the GNU General Public License - see the file COPYING in the Mercury distribution.

## SEE ALSO

\<http://www.cs.mu.oz.au/mercury/information/documentation.html\>

The Mercury User's Guide.

The GNU General Public License.
