1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
<!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>
|