mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-16 15:56:21 -05:00
12 lines
No EOL
3.1 KiB
HTML
12 lines
No EOL
3.1 KiB
HTML
<!DOCTYPE html>
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Compile (ocaml.Compile)</title><link rel="stylesheet" href="../../_odoc-theme/odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.2.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> – <a href="../index.html">ocaml</a> » Compile</nav><header class="odoc-preamble"><h1>Module <code><span>Compile</span></code></h1><p>Bytecode compilation for .ml and .mli files.</p></header><nav class="odoc-toc"><ul><li><a href="#internal-functions">Internal functions</a></li></ul></nav><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-interface"><a href="#val-interface" class="anchor"></a><code><span><span class="keyword">val</span> interface : <span>source_file:string <span class="arrow">-></span></span> <span>output_prefix:string <span class="arrow">-></span></span> unit</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-implementation"><a href="#val-implementation" class="anchor"></a><code><span><span class="keyword">val</span> implementation :
|
||
<span>start_from:<a href="../Clflags/Compiler_pass/index.html#type-t">Clflags.Compiler_pass.t</a> <span class="arrow">-></span></span>
|
||
<span>source_file:string <span class="arrow">-></span></span>
|
||
<span>output_prefix:string <span class="arrow">-></span></span>
|
||
unit</span></code></div></div><h3 id="internal-functions"><a href="#internal-functions" class="anchor"></a>Internal functions</h3><p>*</p><div class="odoc-spec"><div class="spec value anchored" id="val-to_bytecode"><a href="#val-to_bytecode" class="anchor"></a><code><span><span class="keyword">val</span> to_bytecode :
|
||
<span><a href="../Compile_common/index.html#type-info">Compile_common.info</a> <span class="arrow">-></span></span>
|
||
<span><a href="../Typedtree/index.html#type-implementation">Typedtree.implementation</a> <span class="arrow">-></span></span>
|
||
<span><a href="../Instruct/index.html#type-instruction">Instruct.instruction</a> list</span> * <a href="../Ident/Set/index.html#type-t">Ident.Set.t</a></span></code></div><div class="spec-doc"><p><code>to_bytecode info typed</code> takes a typechecked implementation and returns its bytecode.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-emit_bytecode"><a href="#val-emit_bytecode" class="anchor"></a><code><span><span class="keyword">val</span> emit_bytecode :
|
||
<span><a href="../Compile_common/index.html#type-info">Compile_common.info</a> <span class="arrow">-></span></span>
|
||
<span><span>(<span><a href="../Instruct/index.html#type-instruction">Instruct.instruction</a> list</span> * <a href="../Ident/Set/index.html#type-t">Ident.Set.t</a>)</span> <span class="arrow">-></span></span>
|
||
unit</span></code></div><div class="spec-doc"><p><code>emit_bytecode bytecode</code> output the bytecode executable.</p></div></div></div></body></html> |