<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection"><font face="Palatino, serif">Hello all,</font>
<div><font face="Palatino, serif"><br /></font></div>
<div><font face="Palatino, serif">I am writing to request help with compiling Mercury code to WebAssembly via Emscripten. I believe this would involve using the Mercury compiler to compile the gc, runtime, standard library, etc, to c; and then using Emscripten to compile the c to WebAssembly code. From there it should be possibly to compile arbitrary Mercury code to c and then use Emscripten to compile that, linking in the previously prepared runtime and standard library and whatnot. </font></div>
<div><font face="Palatino, serif"><br /></font></div>
<div><font face="Palatino, serif">Does anyone know if and how it would be possbile to carry out the first step of compiling all the Mercury preliminaries to c (similar to the functionality that the '-C' flag for mmc provides)?</font></div>
</div>
<div name="messageSignatureSection"><br />
<div style="caret-color: rgb(213, 218, 222);"><font face="Palatino, serif">Thank you,</font></div>
<div style="caret-color: rgb(213, 218, 222);"><font face="Palatino, serif">Patrick</font></div>
</div>
</body>
</html>