Import Upstream version 20180207
[hcoop/debian/mlton.git] / doc / guide / localhost / MLNLFFIGen
CommitLineData
7f918cf1
CE
1<!DOCTYPE html>\r
2<html lang="en">\r
3<head>\r
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\r
5<meta name="generator" content="AsciiDoc 8.6.9">\r
6<title>MLNLFFIGen</title>\r
7<link rel="stylesheet" href="./asciidoc.css" type="text/css">\r
8<link rel="stylesheet" href="./pygments.css" type="text/css">\r
9\r
10\r
11<script type="text/javascript" src="./asciidoc.js"></script>\r
12<script type="text/javascript">\r
13/*<![CDATA[*/\r
14asciidoc.install();\r
15/*]]>*/\r
16</script>\r
17<link rel="stylesheet" href="./mlton.css" type="text/css">\r
18</head>\r
19<body class="article">\r
20<div id="banner">\r
21<div id="banner-home">\r
22<a href="./Home">MLton 20180207</a>\r
23</div>\r
24</div>\r
25<div id="header">\r
26<h1>MLNLFFIGen</h1>\r
27</div>\r
28<div id="content">\r
29<div id="preamble">\r
30<div class="sectionbody">\r
31<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>\r
32files. It is based on the <a href="CKitLibrary">CKitLibrary</a>, which is primarily designed\r
33to handle standardized C and thus does not understand many (any?)\r
34compiler extensions; however, it attempts to recover from errors when\r
35seeing unrecognized definitions.</p></div>\r
36<div class="paragraph"><p>In order to work around common gcc extensions, it may be useful to add\r
37<span class="monospaced">-cppopt</span> options to the command line; for example\r
38<span class="monospaced">-cppopt '-D__extension__'</span> may be occasionally useful. Fortunately,\r
39most portable libraries largely avoid the use of these types of\r
40extensions in header files.</p></div>\r
41<div class="paragraph"><p><span class="monospaced">mlnlffigen</span> will normally not generate bindings for <span class="monospaced">#included</span>\r
42files; see <span class="monospaced">-match</span> and <span class="monospaced">-allSU</span> if this is desirable.</p></div>\r
43</div>\r
44</div>\r
45</div>\r
46<div id="footnotes"><hr></div>\r
47<div id="footer">\r
48<div id="footer-text">\r
49</div>\r
50<div id="footer-badges">\r
51</div>\r
52</div>\r
53</body>\r
54</html>\r