<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="generator" content="AsciiDoc 8.6.8">
<title>MLNLFFIGen</title>
<link rel="stylesheet" href="./asciidoc.css" type="text/css">
<link rel="stylesheet" href="./pygments.css" type="text/css">


<script type="text/javascript" src="./asciidoc.js"></script>
<script type="text/javascript">
/*<![CDATA[*/
asciidoc.install();
/*]]>*/
</script>
<link rel="stylesheet" href="./mlton.css" type="text/css"/>
</head>
<body class="article">
<div id="banner">
<div id="banner-home">
<a href="./Home">MLton 20130715</a>
</div>
</div>
<div id="header">
<h1>MLNLFFIGen</h1>
</div>
<div id="content">
<div id="preamble">
<div class="sectionbody">
<div class="paragraph"><p><span class="monospaced">mlnlffigen</span> generates a <a href="MLNLFFI">MLNLFFI</a> binding from a collection of <span class="monospaced">.c</span>
files. It is based on the <a href="CKitLibrary">CKitLibrary</a>, which is primarily designed
to handle standardized C and thus does not understand many (any?)
compiler extensions; however, it attempts to recover from errors when
seeing unrecognized definitions.</p></div>
<div class="paragraph"><p>In order to work around common gcc extensions, it may be useful to add
<span class="monospaced">-cppopt</span> options to the command line; for example
<span class="monospaced">-cppopt '-D__extension__'</span> may be occasionally useful. Fortunately,
most portable libraries largely avoid the use of these types of
extensions in header files.</p></div>
<div class="paragraph"><p><span class="monospaced">mlnlffigen</span> will normally not generate bindings for <span class="monospaced">#included</span>
files; see <span class="monospaced">-match</span> and <span class="monospaced">-allSU</span> if this is desirable.</p></div>
</div>
</div>
</div>
<div id="footnotes"><hr></div>
<div id="footer">
<div id="footer-text">
</div>
<div id="footer-badges">
</div>
</div>
</body>
</html>
