moonpool/dev/ocaml/Compile/index.html
2023-08-28 17:11:38 +00:00

12 lines
No EOL
3.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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> &#x00BB; 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">&#45;&gt;</span></span> <span>output_prefix:string <span class="arrow">&#45;&gt;</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">&#45;&gt;</span></span>
<span>source_file:string <span class="arrow">&#45;&gt;</span></span>
<span>output_prefix:string <span class="arrow">&#45;&gt;</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">&#45;&gt;</span></span>
<span><a href="../Typedtree/index.html#type-implementation">Typedtree.implementation</a> <span class="arrow">&#45;&gt;</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">&#45;&gt;</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">&#45;&gt;</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>