fudanchii / vita-luajit

Fully-featured LuaJIT port for PlayStation Vita with JIT and FFI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vita LuaJIT

This is a vitasdk port of LuaJIT with JIT and FFI support. LuaJIT is a Just-In-Time (JIT) compiler for the Lua programming language. See original REAMDE.orig for details.

Build deps

You can install build dependencies with vdpm. vita-libdl is required for FFI support.

$ vdpm vita-libdl

Build LuaJIT

# the following steps will generate a static library libluajit.a
cd src
make HOST_CC="gcc -m32" CROSS=arm-vita-eabi- TARGET_SYS=PSP2 TARGET_FLAGS="-marm -fno-optimize-sibling-calls" PREFIX="ux0:/data/luajit"

Link LuaJIT

When linking with LuaJIT, don't forget to adjust LUA_LROOT of luaconf.h according to PREFIX defined above. If LuaJIT is built with FFI support, vita-libdl must be initialized via dlinit and dldbadd before calling any LuaJIT API.

About

Fully-featured LuaJIT port for PlayStation Vita with JIT and FFI.

License:Other


Languages

Language:C 84.6%Language:Lua 13.6%Language:Makefile 1.1%Language:Batchfile 0.5%Language:Roff 0.1%Language:C++ 0.0%