MGNUC(1)
π MGNUC π
okay bestie, so this is mgnuc β it's from the General Commands Manual section, and honestly she's giving "quiet backend icon" energy. π
β¨ NAME β¨
mgnuc β Mercury front-end to GNU C. that's it, that's the vibe. π
β¨ SYNOPSIS β¨
mgnuc [<options>] [-- <gcc options>] files...
πΈ NOTES πΈ
so mgnuc is one of the dev tools that ship as part of the Mercury distribution. she's part of the squad, not a solo act. π«Ά
and like, real talk β this manual page is literally just a brief summary, bestie, it's not the whole saga. for further info you gotta see the Mercury User's Guide. no cap, that's where the lore lives. π
π OPTIONS π
-v,--verboseβ echoes the gcc command before it runs it. so you can see exactly what she's about to do instead of just vibing in the dark π--no-ansiβ uses the full contents of the system headers instead of just the ANSI subset. going full send on headers, basically π--no-checkβ don't enable any of gcc's warnings. zero warnings, zero thoughts, pure peace π--low-level-debugβ enables low-level debugging of the C code. and listen β this one's useful only for Mercury system developers, so if that's not you, this is not your moment π«£-g,--c-debugβ generates object files that can be debugged with C debuggers likegdb. so when it breaks you actually get to see why π--no-c-optimizeβ disables optimization by the C compiler. she'll be slow but she'll be honest π--inline-allocβ inlines calls to the memory allocator β¨--mercury-standard-library-directory <directory>--mercury-stdlib-dir <directory>β the directory containing the installed Mercury standard library π (both flags, same job, pick your fave)--no-mercury-standard-library-directory,--no-mercury-stdlib-dirβ don't use an installed Mercury standard library. going off-grid, no library, feral mode π--no-filter-ccβ do not filter warnings from the C compiler. let them all through, raw and unfiltered π--halt-at-warn-if-possibleβ converts warnings into errors if (a) the C compiler supports this, and (b) the grade is an MLDS grade. minor caveat bestie: LLDS grades get some warnings that cannot be avoided π
π GRADE OPTIONS π
-s <grade>,--grade <grade>--target {c, csharp, java}--asm-labels--gcc-non-local-gotos--gcc-global-registers-H,--high-level-code--parallel--gc {boehm, boehm_debug, hgc, accurate, none}-p,--profiling--profile-calls--profile-time--profile-memory--profile-deep--record-term-sizes-as-words--record-term-sizes-as-cells--use-trail--use-trail-segments--reserve-tag--use-minimal-model-stack-copy--use-minimal-model-own-stacks--minimal-model-debug--single-prec-float--pic-reg--no-stack-trace--debug--decl-debug--ss-debug--low-level-debug--extend-stacks-when-needed--stack-segments--use-regionsβ see the documentation in the "Invocation" section of the Mercury User's Guide π
and yes, that pointer to the "Invocation" section of the Mercury User's Guide is the whole mood for this list β it's where the actual explanations live. iykyk π§
π¦ DESCRIPTION π¦
so what does she actually do? she runs gcc with the appropriate options for compiling Mercury programs. that's the whole job and she does it well, periodt. π
normally she invokes gcc in ANSI mode with almost all warnings enabled β very "i'm watching you" of her β but you can change that using the --no-ansi or --no-check options. your call, bestie β¨
π ENVIRONMENT VARIABLES π
MERCURY_DEFAULT_GRADE.
that's the one. that's the list. π
β FILES β
here's a cute one: if the current directory contains a file named .mgnuc_copts, then mgnuc will assume it contains C compiler options that should be included on the C compiler's command line. π
and like, what's it usually used for? specifying C compiler search paths. that's her whole thing. no notes π₯
π AUTHORS π
the Mercury team. collectively. as a unit. slay π
π COPYRIGHT π
this program and its documentation are copyright by the University of Melbourne and the Mercury team. and important bit β they may be copied only under the terms of the GNU General Public License, so go see the file COPYING in the Mercury distribution. it's giving "read the paperwork before you copy anything," bestie, don't skip it π«Ά
π SEE ALSO π
- the Mercury User's Guide
<http://www.mercurylang.org/information/documentation.html>
okay that's the whole page, and for the sign-off: this beauty lives in the Mercury Programmer's Manual, dated 2026-04-24 β go forth and compile, bestie, you're gonna ate this π β¨π¦
π¦ where this page comes from
- alpine 3.24: mercury-doc 22.01.8-r1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms