aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/luajit-2.0/etc/luajit.1
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-23 23:36:30 +1000
committerDavid Walter Seikel2012-01-23 23:36:30 +1000
commit6523585c66c04cea54df50013df8886b589847d8 (patch)
tree0b22aee7064166d88595eda260ca2d17c0773da5 /libraries/luajit-2.0/etc/luajit.1
parentUpdate the EFL to what I'm actually using, coz I'm using some stuff not yet r... (diff)
downloadSledjHamr-6523585c66c04cea54df50013df8886b589847d8.zip
SledjHamr-6523585c66c04cea54df50013df8886b589847d8.tar.gz
SledjHamr-6523585c66c04cea54df50013df8886b589847d8.tar.bz2
SledjHamr-6523585c66c04cea54df50013df8886b589847d8.tar.xz
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.
Diffstat (limited to 'libraries/luajit-2.0/etc/luajit.1')
-rw-r--r--libraries/luajit-2.0/etc/luajit.185
1 files changed, 85 insertions, 0 deletions
diff --git a/libraries/luajit-2.0/etc/luajit.1 b/libraries/luajit-2.0/etc/luajit.1
new file mode 100644
index 0000000..57080bc
--- /dev/null
+++ b/libraries/luajit-2.0/etc/luajit.1
@@ -0,0 +1,85 @@
1.TH luajit 1 "" "" "LuaJIT documentation"
2.SH NAME
3luajit \- Just-In-Time Compiler for the Lua Language
4\fB
5.SH SYNOPSIS
6.B luajit
7[\fIoptions\fR]... [\fIscript\fR [\fIargs\fR]...]
8.SH "WEB SITE"
9.IR http://luajit.org
10.SH DESCRIPTION
11.PP
12This is the command-line program to run Lua programs with \fBLuaJIT\fR.
13.PP
14\fBLuaJIT\fR is a just-in-time (JIT) compiler for the Lua language.
15The virtual machine (VM) is based on a fast interpreter combined with
16a trace compiler. It can significantly improve the performance of Lua programs.
17.PP
18\fBLuaJIT\fR is API\- and ABI-compatible with the VM of the standard
19Lua\ 5.1 interpreter. When embedding the VM into an application,
20the built library can be used as a drop-in replacement.
21.SH OPTIONS
22.TP
23.BI "\-e " chunk
24Run the given chunk of Lua code.
25.TP
26.BI "\-l " library
27Load the named library, just like \fBrequire("\fR\fIlibrary\fR\fB")\fR.
28.TP
29.BI "\-b " ...
30Save or list bytecode. Run without arguments to get help on options.
31.TP
32.BI "\-j " command
33Perform LuaJIT control command (optional space after \fB\-j\fR).
34.TP
35.BI "\-O" [opt]
36Control LuaJIT optimizations.
37.TP
38.B "\-i"
39Run in interactive mode.
40.TP
41.B "\-v"
42Show \fBLuaJIT\fR version.
43.TP
44.B "\-\-"
45Stop processing options.
46.TP
47.B "\-"
48Read script from stdin instead.
49.PP
50After all options are processed, the given \fIscript\fR is run.
51The arguments are passed in the global \fIarg\fR table.
52.PP
53Interactive mode is only entered, if no \fIscript\fR and no \fB\-e\fR
54option is given. Interactive mode can be left with EOF (\fICtrl\-Z\fB).
55.SH EXAMPLES
56.TP
57luajit hello.lua world
58
59Prints "Hello world", assuming \fIhello.lua\fR contains:
60.br
61 print("Hello", arg[1])
62.TP
63luajit \-e "local x=0; for i=1,1e9 do x=x+i end; print(x)"
64
65Calculates the sum of the numbers from 1 to 1000000000.
66.br
67And finishes in a reasonable amount of time, too.
68.TP
69luajit \-jv \-e "for i=1,10 do for j=1,10 do for k=1,100 do end end end"
70
71Runs some nested loops and shows the resulting traces.
72.SH COPYRIGHT
73.PP
74\fBLuaJIT\fR is Copyright \(co 2005-2011 Mike Pall.
75.br
76\fBLuaJIT\fR is open source software, released under the MIT license.
77.SH SEE ALSO
78.PP
79More details in the provided HTML docs or at:
80.IR http://luajit.org
81.br
82More about the Lua language can be found at:
83.IR http://lua.org/docs.html
84.PP
85lua(1)