From 6523585c66c04cea54df50013df8886b589847d8 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Mon, 23 Jan 2012 23:36:30 +1000 Subject: Add luaproc and LuaJIT libraries. Two versions of LuaJIT, the stable release, and the dev version. Try the dev version first, until ih fails badly. --- libraries/LuaJIT-1.1.7/jitdoc/luajit_run.html | 159 ++++++++++++++++++++++++++ 1 file changed, 159 insertions(+) create mode 100644 libraries/LuaJIT-1.1.7/jitdoc/luajit_run.html (limited to 'libraries/LuaJIT-1.1.7/jitdoc/luajit_run.html') diff --git a/libraries/LuaJIT-1.1.7/jitdoc/luajit_run.html b/libraries/LuaJIT-1.1.7/jitdoc/luajit_run.html new file mode 100644 index 0000000..bc9105b --- /dev/null +++ b/libraries/LuaJIT-1.1.7/jitdoc/luajit_run.html @@ -0,0 +1,159 @@ + + + +Running LuaJIT + + + + + + + + +
+Lua +
+ + +
+

+LuaJIT has only a single stand-alone executable, called luajit. +It can be used to run simple Lua statements or whole Lua applications +from the command line. It has an interactive mode, too. +

+

+Note: The optimizer is not activated by default because it resides +in an external module +(see Installing LuaJIT). +It's recommended to always use the optimizer, i.e.: luajit -O +

+ +

Command Line Options

+

+The luajit stand-alone executable is just a slightly modified +version of the regular lua stand-alone executable. +It supports the same basic options, too. Please have a look at the +Manual Page +for the regular lua stand-alone executable. +

+

+Two additional options control LuaJIT behaviour: +

+ +

-j cmd[=value]

+

+This option performs a LuaJIT control command. LuaJIT has a small +but extensible set of control commands. It's easy to add your own. +

+

+The command is first searched for in the jit.* library. +If no matching function is found, a module named jit.<cmd> +is loaded. The module table must provide a start() function. +

+

+For the -j cmd form the function is called without an argument. +Otherwise the value is passed as the first argument (a string). +

+

+Here are the built-in LuaJIT control commands: +

+ +

+The following control commands are loaded from add-on modules: +

+ + + +

-O[level]

+

+This option loads and runs the optimizer module jit.opt. +The optimizer generates hints for the compiler backend to improve +the performance of the compiled code. The optimizer slows down +compilation slightly, but the end result should make up for it +in almost every case. +

+

+The -O form sets the default optimizer level, which is +currently 2 (this may change in future versions +of LuaJIT). +

+

+The -Olevel form explicitly sets the optimizer level: +

+ + +
+
+ + + -- cgit v1.1