|
@@ -129,7 +129,7 @@ operating systems, CPUs and compilers:
|
|
|
<tr class="odd">
|
|
|
<td class="compatcpu"><a href="#cross2">ARMv5+<br>ARM9E+</a></td>
|
|
|
<td class="compatos">GCC 4.2+</td>
|
|
|
-<td class="compatos">GCC 4.2+</td>
|
|
|
+<td class="compatos">GCC 4.2+<br>PSP2 (<a href="#psvita">PS VITA</a>)</td>
|
|
|
<td class="compatos">GCC 4.2+</td>
|
|
|
<td class="compatos compatno"> </td>
|
|
|
</tr>
|
|
@@ -460,41 +460,56 @@ ISDKF="-arch armv7 -isysroot $ISDK/SDKs/$ISDKVER"
|
|
|
make HOST_CC="gcc -m32 -arch i386" CROSS=$ISDKP TARGET_FLAGS="$ISDKF" \
|
|
|
TARGET_SYS=iOS
|
|
|
</pre>
|
|
|
+
|
|
|
+<h3 id="consoles">Cross-compiling for consoles</h3>
|
|
|
<p>
|
|
|
-You can cross-compile for <b id="ps3">PS3</b> using the PS3 SDK from
|
|
|
-a Linux host or a Windows host (requires 32 bit MinGW (GCC) on the host,
|
|
|
-too). Due to restrictions on consoles, the JIT compiler is disabled and
|
|
|
-only the fast interpreter is built:
|
|
|
+Building LuaJIT for consoles requires both a supported host compiler
|
|
|
+(x86 or x64) and a cross-compiler (to PPC or ARM) from the official
|
|
|
+console SDK.
|
|
|
</p>
|
|
|
-<pre class="code">
|
|
|
-make HOST_CC="gcc -m32" CROSS=ppu-lv2-
|
|
|
-</pre>
|
|
|
<p>
|
|
|
-You can cross-compile for <b id="ps4">PS4</b> from a Windows host using
|
|
|
-the PS4 SDK (ORBIS) plus 64 bit MSVC. Due to restrictions on
|
|
|
-consoles, the JIT compiler is disabled and only the fast interpreter
|
|
|
-is built.
|
|
|
+Due to restrictions on consoles, the JIT compiler is disabled and only
|
|
|
+the fast interpreter is built. This is still faster than plain Lua,
|
|
|
+but much slower than the JIT compiler. The FFI is disabled, too, since
|
|
|
+it's not very useful in such an environment.
|
|
|
</p>
|
|
|
<p>
|
|
|
-Open a "Visual Studio .NET Command Prompt" (64 bit host compiler),
|
|
|
-<tt>cd</tt> to the directory where you've unpacked the sources and run
|
|
|
-the following commands. This builds a static library <tt>libluajit.a</tt>,
|
|
|
+The following commands build a static library <tt>libluajit.a</tt>,
|
|
|
which can be linked against your game, just like the Lua library.
|
|
|
</p>
|
|
|
+<p>
|
|
|
+To cross-compile for <b id="ps3">PS3</b> from a Linux host (requires
|
|
|
+32 bit GCC, i.e. multilib Linux/x64) or a Windows host (requires
|
|
|
+32 bit MinGW), run this command:
|
|
|
+</p>
|
|
|
+<pre class="code">
|
|
|
+make HOST_CC="gcc -m32" CROSS=ppu-lv2-
|
|
|
+</pre>
|
|
|
+<p>
|
|
|
+To cross-compile for <b id="ps4">PS4</b> from a Windows host,
|
|
|
+open a "Visual Studio .NET Command Prompt" (64 bit host compiler),
|
|
|
+<tt>cd</tt> to the directory where you've unpacked the sources and
|
|
|
+run the following commands:
|
|
|
+</p>
|
|
|
<pre class="code">
|
|
|
cd src
|
|
|
ps4build
|
|
|
</pre>
|
|
|
<p>
|
|
|
-You can cross-compile for <b id="xbox360">Xbox 360</b> using the
|
|
|
-Xbox 360 SDK (MSVC + XEDK). Due to restrictions on consoles, the
|
|
|
-JIT compiler is disabled and only the fast interpreter is built.
|
|
|
+To cross-compile for <b id="psvita">PS Vita</b> from a Windows host,
|
|
|
+open a "Visual Studio .NET Command Prompt" (32 bit host compiler),
|
|
|
+<tt>cd</tt> to the directory where you've unpacked the sources and
|
|
|
+run the following commands:
|
|
|
</p>
|
|
|
+<pre class="code">
|
|
|
+cd src
|
|
|
+psvitabuild
|
|
|
+</pre>
|
|
|
<p>
|
|
|
-Open a "Visual Studio .NET Command Prompt" (32 bit host compiler),
|
|
|
+To cross-compile for <b id="xbox360">Xbox 360</b> from a Windows host,
|
|
|
+open a "Visual Studio .NET Command Prompt" (32 bit host compiler),
|
|
|
<tt>cd</tt> to the directory where you've unpacked the sources and run
|
|
|
-the following commands. This builds a static library <tt>luajit20.lib</tt>,
|
|
|
-which can be linked against your game, just like the Lua library.
|
|
|
+the following commands:
|
|
|
</p>
|
|
|
<pre class="code">
|
|
|
cd src
|