aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMike Pall <mike>2014-04-27 00:09:45 +0200
committerMike Pall <mike>2014-04-27 00:09:45 +0200
commit7a39be0ac45d8cd19c13bab38d4dda31ea599760 (patch)
tree502799316175fed602af6e9d93462b02120b6f9c /doc
parent2715fe3aee7c8202b4b5d04748d1c5faa6d8fd9c (diff)
downloadluajit-7a39be0ac45d8cd19c13bab38d4dda31ea599760.tar.gz
luajit-7a39be0ac45d8cd19c13bab38d4dda31ea599760.tar.bz2
luajit-7a39be0ac45d8cd19c13bab38d4dda31ea599760.zip
Add PS Vita port.
Thanks to Anton Stenmark.
Diffstat (limited to 'doc')
-rw-r--r--doc/install.html57
-rw-r--r--doc/luajit.html8
2 files changed, 43 insertions, 22 deletions
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:
127<tr class="odd"> 127<tr class="odd">
128<td class="compatcpu"><a href="#cross2">ARMv5+<br>ARM9E+</a></td> 128<td class="compatcpu"><a href="#cross2">ARMv5+<br>ARM9E+</a></td>
129<td class="compatos">GCC 4.2+</td> 129<td class="compatos">GCC 4.2+</td>
130<td class="compatos">GCC 4.2+</td> 130<td class="compatos">GCC 4.2+<br>PSP2 (<a href="#psvita">PS VITA</a>)</td>
131<td class="compatos">GCC 4.2+</td> 131<td class="compatos">GCC 4.2+</td>
132<td class="compatos compatno">&nbsp;</td> 132<td class="compatos compatno">&nbsp;</td>
133</tr> 133</tr>
@@ -458,41 +458,56 @@ ISDKF="-arch armv7 -isysroot $ISDK/SDKs/$ISDKVER"
458make HOST_CC="gcc -m32 -arch i386" CROSS=$ISDKP TARGET_FLAGS="$ISDKF" \ 458make HOST_CC="gcc -m32 -arch i386" CROSS=$ISDKP TARGET_FLAGS="$ISDKF" \
459 TARGET_SYS=iOS 459 TARGET_SYS=iOS
460</pre> 460</pre>
461
462<h3 id="consoles">Cross-compiling for consoles</h3>
461<p> 463<p>
462You can cross-compile for <b id="ps3">PS3</b> using the PS3&nbsp;SDK from 464Building LuaJIT for consoles requires both a supported host compiler
463a Linux host or a Windows host (requires 32&nbsp;bit MinGW (GCC) on the host, 465(x86 or x64) and a cross-compiler (to PPC or ARM) from the official
464too). Due to restrictions on consoles, the JIT compiler is disabled and 466console SDK.
465only the fast interpreter is built:
466</p> 467</p>
467<pre class="code">
468make HOST_CC="gcc -m32" CROSS=ppu-lv2-
469</pre>
470<p> 468<p>
471You can cross-compile for <b id="ps4">PS4</b> from a Windows host using 469Due to restrictions on consoles, the JIT compiler is disabled and only
472the PS4&nbsp;SDK (ORBIS) plus 64&nbsp;bit MSVC. Due to restrictions on 470the fast interpreter is built. This is still faster than plain Lua,
473consoles, the JIT compiler is disabled and only the fast interpreter 471but much slower than the JIT compiler. The FFI is disabled, too, since
474is built. 472it's not very useful in such an environment.
475</p> 473</p>
476<p> 474<p>
477Open a "Visual Studio .NET Command Prompt" (64&nbsp;bit host compiler), 475The following commands build a static library <tt>libluajit.a</tt>,
478<tt>cd</tt> to the directory where you've unpacked the sources and run
479the following commands. This builds a static library <tt>libluajit.a</tt>,
480which can be linked against your game, just like the Lua library. 476which can be linked against your game, just like the Lua library.
481</p> 477</p>
478<p>
479To cross-compile for <b id="ps3">PS3</b> from a Linux host (requires
48032&nbsp;bit GCC, i.e. multilib Linux/x64) or a Windows host (requires
48132&nbsp;bit MinGW), run this command:
482</p>
483<pre class="code">
484make HOST_CC="gcc -m32" CROSS=ppu-lv2-
485</pre>
486<p>
487To cross-compile for <b id="ps4">PS4</b> from a Windows host,
488open a "Visual Studio .NET Command Prompt" (64&nbsp;bit host compiler),
489<tt>cd</tt> to the directory where you've unpacked the sources and
490run the following commands:
491</p>
482<pre class="code"> 492<pre class="code">
483cd src 493cd src
484ps4build 494ps4build
485</pre> 495</pre>
486<p> 496<p>
487You can cross-compile for <b id="xbox360">Xbox 360</b> using the 497To cross-compile for <b id="psvita">PS Vita</b> from a Windows host,
488Xbox&nbsp;360 SDK (MSVC + XEDK). Due to restrictions on consoles, the 498open a "Visual Studio .NET Command Prompt" (32&nbsp;bit host compiler),
489JIT compiler is disabled and only the fast interpreter is built. 499<tt>cd</tt> to the directory where you've unpacked the sources and
500run the following commands:
490</p> 501</p>
502<pre class="code">
503cd src
504psvitabuild
505</pre>
491<p> 506<p>
492Open a "Visual Studio .NET Command Prompt" (32&nbsp;bit host compiler), 507To cross-compile for <b id="xbox360">Xbox 360</b> from a Windows host,
508open a "Visual Studio .NET Command Prompt" (32&nbsp;bit host compiler),
493<tt>cd</tt> to the directory where you've unpacked the sources and run 509<tt>cd</tt> to the directory where you've unpacked the sources and run
494the following commands. This builds a static library <tt>luajit20.lib</tt>, 510the following commands:
495which can be linked against your game, just like the Lua library.
496</p> 511</p>
497<pre class="code"> 512<pre class="code">
498cd src 513cd 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 {
38table.os2 td { 38table.os2 td {
39 color: #ffa040; 39 color: #ffa040;
40} 40}
41table.os3 td {
42 color: #40ffff;
43}
41table.compiler td { 44table.compiler td {
42 color: #2080ff; 45 color: #2080ff;
43 background: #62bf41; 46 background: #62bf41;
@@ -158,7 +161,10 @@ LuaJIT is Copyright &copy; 2005-2014 Mike Pall, released under the
158<tr><td>Windows</td><td>Linux</td><td>BSD</td><td>OSX</td><td>POSIX</td></tr> 161<tr><td>Windows</td><td>Linux</td><td>BSD</td><td>OSX</td><td>POSIX</td></tr>
159</table> 162</table>
160<table class="feature os os2"> 163<table class="feature os os2">
161<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> 164<tr><td><span style="font-size:90%;">Embedded</span></td><td>Android</td><td>iOS</td></tr>
165</table>
166<table class="feature os os3">
167<tr><td>PS3</td><td>PS4</td><td>PS Vita</td><td>Xbox 360</td></tr>
162</table> 168</table>
163<table class="feature compiler"> 169<table class="feature compiler">
164<tr><td>GCC</td><td>CLANG<br>LLVM</td><td>MSVC</td></tr> 170<tr><td>GCC</td><td>CLANG<br>LLVM</td><td>MSVC</td></tr>