diff options
author | Mike Pall <mike> | 2014-04-27 00:09:45 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2014-04-27 00:09:45 +0200 |
commit | 7a39be0ac45d8cd19c13bab38d4dda31ea599760 (patch) | |
tree | 502799316175fed602af6e9d93462b02120b6f9c /doc | |
parent | 2715fe3aee7c8202b4b5d04748d1c5faa6d8fd9c (diff) | |
download | luajit-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.html | 57 | ||||
-rw-r--r-- | doc/luajit.html | 8 |
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"> </td> | 132 | <td class="compatos compatno"> </td> |
133 | </tr> | 133 | </tr> |
@@ -458,41 +458,56 @@ ISDKF="-arch armv7 -isysroot $ISDK/SDKs/$ISDKVER" | |||
458 | make HOST_CC="gcc -m32 -arch i386" CROSS=$ISDKP TARGET_FLAGS="$ISDKF" \ | 458 | make 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> |
462 | You can cross-compile for <b id="ps3">PS3</b> using the PS3 SDK from | 464 | Building LuaJIT for consoles requires both a supported host compiler |
463 | a Linux host or a Windows host (requires 32 bit MinGW (GCC) on the host, | 465 | (x86 or x64) and a cross-compiler (to PPC or ARM) from the official |
464 | too). Due to restrictions on consoles, the JIT compiler is disabled and | 466 | console SDK. |
465 | only the fast interpreter is built: | ||
466 | </p> | 467 | </p> |
467 | <pre class="code"> | ||
468 | make HOST_CC="gcc -m32" CROSS=ppu-lv2- | ||
469 | </pre> | ||
470 | <p> | 468 | <p> |
471 | You can cross-compile for <b id="ps4">PS4</b> from a Windows host using | 469 | Due to restrictions on consoles, the JIT compiler is disabled and only |
472 | the PS4 SDK (ORBIS) plus 64 bit MSVC. Due to restrictions on | 470 | the fast interpreter is built. This is still faster than plain Lua, |
473 | consoles, the JIT compiler is disabled and only the fast interpreter | 471 | but much slower than the JIT compiler. The FFI is disabled, too, since |
474 | is built. | 472 | it's not very useful in such an environment. |
475 | </p> | 473 | </p> |
476 | <p> | 474 | <p> |
477 | Open a "Visual Studio .NET Command Prompt" (64 bit host compiler), | 475 | The 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 | ||
479 | the following commands. This builds a static library <tt>libluajit.a</tt>, | ||
480 | which can be linked against your game, just like the Lua library. | 476 | which can be linked against your game, just like the Lua library. |
481 | </p> | 477 | </p> |
478 | <p> | ||
479 | To cross-compile for <b id="ps3">PS3</b> from a Linux host (requires | ||
480 | 32 bit GCC, i.e. multilib Linux/x64) or a Windows host (requires | ||
481 | 32 bit MinGW), run this command: | ||
482 | </p> | ||
483 | <pre class="code"> | ||
484 | make HOST_CC="gcc -m32" CROSS=ppu-lv2- | ||
485 | </pre> | ||
486 | <p> | ||
487 | To cross-compile for <b id="ps4">PS4</b> from a Windows host, | ||
488 | open a "Visual Studio .NET Command Prompt" (64 bit host compiler), | ||
489 | <tt>cd</tt> to the directory where you've unpacked the sources and | ||
490 | run the following commands: | ||
491 | </p> | ||
482 | <pre class="code"> | 492 | <pre class="code"> |
483 | cd src | 493 | cd src |
484 | ps4build | 494 | ps4build |
485 | </pre> | 495 | </pre> |
486 | <p> | 496 | <p> |
487 | You can cross-compile for <b id="xbox360">Xbox 360</b> using the | 497 | To cross-compile for <b id="psvita">PS Vita</b> from a Windows host, |
488 | Xbox 360 SDK (MSVC + XEDK). Due to restrictions on consoles, the | 498 | open a "Visual Studio .NET Command Prompt" (32 bit host compiler), |
489 | JIT compiler is disabled and only the fast interpreter is built. | 499 | <tt>cd</tt> to the directory where you've unpacked the sources and |
500 | run the following commands: | ||
490 | </p> | 501 | </p> |
502 | <pre class="code"> | ||
503 | cd src | ||
504 | psvitabuild | ||
505 | </pre> | ||
491 | <p> | 506 | <p> |
492 | Open a "Visual Studio .NET Command Prompt" (32 bit host compiler), | 507 | To cross-compile for <b id="xbox360">Xbox 360</b> from a Windows host, |
508 | open a "Visual Studio .NET Command Prompt" (32 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 |
494 | the following commands. This builds a static library <tt>luajit20.lib</tt>, | 510 | the following commands: |
495 | which can be linked against your game, just like the Lua library. | ||
496 | </p> | 511 | </p> |
497 | <pre class="code"> | 512 | <pre class="code"> |
498 | cd src | 513 | 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 { | |||
38 | table.os2 td { | 38 | table.os2 td { |
39 | color: #ffa040; | 39 | color: #ffa040; |
40 | } | 40 | } |
41 | table.os3 td { | ||
42 | color: #40ffff; | ||
43 | } | ||
41 | table.compiler td { | 44 | table.compiler td { |
42 | color: #2080ff; | 45 | color: #2080ff; |
43 | background: #62bf41; | 46 | background: #62bf41; |
@@ -158,7 +161,10 @@ LuaJIT is Copyright © 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> |