aboutsummaryrefslogtreecommitdiffstats
path: root/docs/tutorial/OCamlLangImpl4.html
diff options
context:
space:
mode:
authorErick Tryzelaar <idadesub@users.sourceforge.net>2008-03-31 08:44:50 +0000
committerErick Tryzelaar <idadesub@users.sourceforge.net>2008-03-31 08:44:50 +0000
commit35295ffd500b39781e3ed015293e31c665a8b5bc (patch)
tree6c4d914d54f96a7df264747a60381499cd4c35bb /docs/tutorial/OCamlLangImpl4.html
parent9d15abe8385d17aa86c8144c8bbbac958fb91f17 (diff)
downloadexternal_llvm-35295ffd500b39781e3ed015293e31c665a8b5bc.zip
external_llvm-35295ffd500b39781e3ed015293e31c665a8b5bc.tar.gz
external_llvm-35295ffd500b39781e3ed015293e31c665a8b5bc.tar.bz2
Chapter 5, 6, and 7 of the ocaml/kaleidoscope tutorial
and fix some tabs in chapter 3 and 4. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/tutorial/OCamlLangImpl4.html')
-rw-r--r--docs/tutorial/OCamlLangImpl4.html18
1 files changed, 14 insertions, 4 deletions
diff --git a/docs/tutorial/OCamlLangImpl4.html b/docs/tutorial/OCamlLangImpl4.html
index fc1caeb..4e267b8 100644
--- a/docs/tutorial/OCamlLangImpl4.html
+++ b/docs/tutorial/OCamlLangImpl4.html
@@ -237,7 +237,7 @@ We do this by running it after our newly created function is constructed (in
<div class="doc_code">
<pre>
let codegen_func the_fpm = function
- ...
+ ...
try
let ret_val = codegen_expr body in
@@ -316,10 +316,9 @@ by adding a global variable and a call in <tt>main</tt>:</p>
...
let main () =
...
- <b>
- (* Create the JIT. *)
+ <b>(* Create the JIT. *)
let the_module_provider = ModuleProvider.create Codegen.the_module in
- let the_execution_engine = ExecutionEngine.create the_module_provider in</b>
+ let the_execution_engine = ExecutionEngine.create the_module_provider in</b>
...
</pre>
</div>
@@ -508,6 +507,17 @@ Here is the complete code listing for our running example, enhanced with the
LLVM JIT and optimizer. To build this example, use:
</p>
+<div class="doc_code">
+<pre>
+# Compile
+ocamlbuild toy.byte
+# Run
+./toy.byte
+</pre>
+</div>
+
+<p>Here is the code:</p>
+
<dl>
<dt>_tags:</dt>
<dd class="doc_code">