From 7a39be0ac45d8cd19c13bab38d4dda31ea599760 Mon Sep 17 00:00:00 2001 From: Mike Pall <mike> Date: Sun, 27 Apr 2014 00:09:45 +0200 Subject: Add PS Vita port. Thanks to Anton Stenmark. --- doc/install.html | 57 +++++++++++++++++++++++++++++++++++--------------------- doc/luajit.html | 8 +++++++- 2 files changed, 43 insertions(+), 22 deletions(-) (limited to 'doc') diff --git a/doc/install.html b/doc/install.html index 2388ff33..f8163153 100644 --- a/doc/install.html +++ b/doc/install.html @@ -127,7 +127,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> @@ -458,41 +458,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 diff --git a/doc/luajit.html b/doc/luajit.html index 43af69c9..ddbc0164 100644 --- a/doc/luajit.html +++ b/doc/luajit.html @@ -38,6 +38,9 @@ table.os1 td { table.os2 td { color: #ffa040; } +table.os3 td { + color: #40ffff; +} table.compiler td { color: #2080ff; background: #62bf41; @@ -158,7 +161,10 @@ LuaJIT is Copyright © 2005-2014 Mike Pall, released under the <tr><td>Windows</td><td>Linux</td><td>BSD</td><td>OSX</td><td>POSIX</td></tr> </table> <table class="feature os os2"> -<tr><td><span style="font-size:90%;">Embedded</span></td><td>Android</td><td>iOS</td><td>PS3</td><td>PS4</td><td>Xbox 360</td></tr> +<tr><td><span style="font-size:90%;">Embedded</span></td><td>Android</td><td>iOS</td></tr> +</table> +<table class="feature os os3"> +<tr><td>PS3</td><td>PS4</td><td>PS Vita</td><td>Xbox 360</td></tr> </table> <table class="feature compiler"> <tr><td>GCC</td><td>CLANG<br>LLVM</td><td>MSVC</td></tr> -- cgit v1.2.3-55-g6feb