============================
forked by LuaJIT(v2.0.4)
Lua script convert to binary(for LuaJIT version)
glue code with LuaDist/srlua(using to uLua - 秀丸マクロ.net)
archive files with wordijp/cluajitar
$ echo 'print("hello world")' > hello.lua
$ lua hello.lua
hello world
$ cluajit hello.lua
hello world
$ cluajit hello.lua hello.o -link
$ ./hello.o
hello world
files
-- foo.lua
local m = {}
function m.say()
print("from foo")
end
return m
-- hello.lua
local foo = require("foo")
print("hello world")
foo.say()
convert and run
# first source code is main program
$ cluajit hello.lua foo.lua hello.o -link
# delete source code
$ rm hello.lua foo.lua
$ ./hello.o
hello world
from foo
LuaJIT is a Just-In-Time (JIT) compiler for the Lua programming language.
Project Homepage: http://luajit.org/
LuaJIT is Copyright (C) 2005-2016 Mike Pall. LuaJIT is free software, released under the MIT license. See full Copyright Notice in the COPYRIGHT file or in luajit.h.
Documentation for LuaJIT is available in HTML format. Please point your favorite browser to:
doc/luajit.html