Add more docs for bytecode load/save feature.

This commit is contained in:
Mike Pall
2011-06-14 01:58:19 +02:00
parent bcc196eed3
commit ecab831ebf
2 changed files with 24 additions and 0 deletions

View File

@@ -133,6 +133,13 @@ luajit -bl test.lua # List to stdout
luajit -bl test.lua test.txt # List to test.txt
luajit -ble "print('hello world') end" # List cmdline script
</pre>
<p>
Note: A file in bytecode format is auto-detected and can be loaded like
any Lua source file. E.g. directly from the command line or with
<tt>loadfile()</tt>, <tt>dofile()</tt> etc. See also
<a href="extensions.html#string_dump">string.dump()</a> for information
on bytecode portability and compatibility.
</p>
<h3 id="opt_j"><tt>-j cmd[=arg[,arg...]]</tt></h3>
<p>