<div dir="ltr"><div dir="ltr"><div>Hello,</div><div><br></div><div>When attempting to build a library of mercury functions to be called from C, I wind up individually compiling to C, then using C tools for everything else.   Is there a better approach??<br></div><div><br></div><div>What I've got working in my Proof of Concept is to compile each module separately with:</div><div><br></div><div><span style="font-family:monospace,monospace">   mmc --grade hlc --compile-to-c  min.m</span><br></div><div><br></div><div>And then use my C compiler (gcc) on the output C file.</div><div><br></div><div>In larger apps, I'd like to try and mirror the approach I use with C, which is to build a convenience library (i.e. a static lib that is only ever used by main and unit tests of the project, and is statically linked against) and call into mercury modules from there.</div><div><br></div><div>I thought there was a command that would easily do that, something like:  mmc --make my_lib.a, but I can't find the docs anymore.    <br></div><div><br></div><div>Additionally, I am hoisting up my larger projects with CMake, instead of GNU Make.<br></div><div><br></div><br></div><div>Thanks!</div><div><br></div><div>Charles<br></div></div>