diff options
author | Mike Pall <mike> | 2014-04-27 00:10:34 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2014-04-27 00:10:34 +0200 |
commit | e26dc8a21556078ad82afb33c452ea72e7c6d9f2 (patch) | |
tree | 446096c4a50e9b023c567464a1c2bb2aa285fdae /doc | |
parent | c8d1aff0bafcbfadb4a119685708c19788158cd6 (diff) | |
parent | 7a39be0ac45d8cd19c13bab38d4dda31ea599760 (diff) | |
download | luajit-e26dc8a21556078ad82afb33c452ea72e7c6d9f2.tar.gz luajit-e26dc8a21556078ad82afb33c452ea72e7c6d9f2.tar.bz2 luajit-e26dc8a21556078ad82afb33c452ea72e7c6d9f2.zip |
Merge branch 'master' into v2.1
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 bff8d280..2ad60c32 100644 --- a/doc/install.html +++ b/doc/install.html | |||
@@ -129,7 +129,7 @@ operating systems, CPUs and compilers: | |||
129 | <tr class="odd"> | 129 | <tr class="odd"> |
130 | <td class="compatcpu"><a href="#cross2">ARMv5+<br>ARM9E+</a></td> | 130 | <td class="compatcpu"><a href="#cross2">ARMv5+<br>ARM9E+</a></td> |
131 | <td class="compatos">GCC 4.2+</td> | 131 | <td class="compatos">GCC 4.2+</td> |
132 | <td class="compatos">GCC 4.2+</td> | 132 | <td class="compatos">GCC 4.2+<br>PSP2 (<a href="#psvita">PS VITA</a>)</td> |
133 | <td class="compatos">GCC 4.2+</td> | 133 | <td class="compatos">GCC 4.2+</td> |
134 | <td class="compatos compatno"> </td> | 134 | <td class="compatos compatno"> </td> |
135 | </tr> | 135 | </tr> |
@@ -460,41 +460,56 @@ ISDKF="-arch armv7 -isysroot $ISDK/SDKs/$ISDKVER" | |||
460 | make HOST_CC="gcc -m32 -arch i386" CROSS=$ISDKP TARGET_FLAGS="$ISDKF" \ | 460 | make HOST_CC="gcc -m32 -arch i386" CROSS=$ISDKP TARGET_FLAGS="$ISDKF" \ |
461 | TARGET_SYS=iOS | 461 | TARGET_SYS=iOS |
462 | </pre> | 462 | </pre> |
463 | |||
464 | <h3 id="consoles">Cross-compiling for consoles</h3> | ||
463 | <p> | 465 | <p> |
464 | You can cross-compile for <b id="ps3">PS3</b> using the PS3 SDK from | 466 | Building LuaJIT for consoles requires both a supported host compiler |
465 | a Linux host or a Windows host (requires 32 bit MinGW (GCC) on the host, | 467 | (x86 or x64) and a cross-compiler (to PPC or ARM) from the official |
466 | too). Due to restrictions on consoles, the JIT compiler is disabled and | 468 | console SDK. |
467 | only the fast interpreter is built: | ||
468 | </p> | 469 | </p> |
469 | <pre class="code"> | ||
470 | make HOST_CC="gcc -m32" CROSS=ppu-lv2- | ||
471 | </pre> | ||
472 | <p> | 470 | <p> |
473 | You can cross-compile for <b id="ps4">PS4</b> from a Windows host using | 471 | Due to restrictions on consoles, the JIT compiler is disabled and only |
474 | the PS4 SDK (ORBIS) plus 64 bit MSVC. Due to restrictions on | 472 | the fast interpreter is built. This is still faster than plain Lua, |
475 | consoles, the JIT compiler is disabled and only the fast interpreter | 473 | but much slower than the JIT compiler. The FFI is disabled, too, since |
476 | is built. | 474 | it's not very useful in such an environment. |
477 | </p> | 475 | </p> |
478 | <p> | 476 | <p> |
479 | Open a "Visual Studio .NET Command Prompt" (64 bit host compiler), | 477 | The following commands build a static library <tt>libluajit.a</tt>, |
480 | <tt>cd</tt> to the directory where you've unpacked the sources and run | ||
481 | the following commands. This builds a static library <tt>libluajit.a</tt>, | ||
482 | which can be linked against your game, just like the Lua library. | 478 | which can be linked against your game, just like the Lua library. |
483 | </p> | 479 | </p> |
480 | <p> | ||
481 | To cross-compile for <b id="ps3">PS3</b> from a Linux host (requires | ||
482 | 32 bit GCC, i.e. multilib Linux/x64) or a Windows host (requires | ||
483 | 32 bit MinGW), run this command: | ||
484 | </p> | ||
485 | <pre class="code"> | ||
486 | make HOST_CC="gcc -m32" CROSS=ppu-lv2- | ||
487 | </pre> | ||
488 | <p> | ||
489 | To cross-compile for <b id="ps4">PS4</b> from a Windows host, | ||
490 | open a "Visual Studio .NET Command Prompt" (64 bit host compiler), | ||
491 | <tt>cd</tt> to the directory where you've unpacked the sources and | ||
492 | run the following commands: | ||
493 | </p> | ||
484 | <pre class="code"> | 494 | <pre class="code"> |
485 | cd src | 495 | cd src |
486 | ps4build | 496 | ps4build |
487 | </pre> | 497 | </pre> |
488 | <p> | 498 | <p> |
489 | You can cross-compile for <b id="xbox360">Xbox 360</b> using the | 499 | To cross-compile for <b id="psvita">PS Vita</b> from a Windows host, |
490 | Xbox 360 SDK (MSVC + XEDK). Due to restrictions on consoles, the | 500 | open a "Visual Studio .NET Command Prompt" (32 bit host compiler), |
491 | JIT compiler is disabled and only the fast interpreter is built. | 501 | <tt>cd</tt> to the directory where you've unpacked the sources and |
502 | run the following commands: | ||
492 | </p> | 503 | </p> |
504 | <pre class="code"> | ||
505 | cd src | ||
506 | psvitabuild | ||
507 | </pre> | ||
493 | <p> | 508 | <p> |
494 | Open a "Visual Studio .NET Command Prompt" (32 bit host compiler), | 509 | To cross-compile for <b id="xbox360">Xbox 360</b> from a Windows host, |
510 | open a "Visual Studio .NET Command Prompt" (32 bit host compiler), | ||
495 | <tt>cd</tt> to the directory where you've unpacked the sources and run | 511 | <tt>cd</tt> to the directory where you've unpacked the sources and run |
496 | the following commands. This builds a static library <tt>luajit20.lib</tt>, | 512 | the following commands: |
497 | which can be linked against your game, just like the Lua library. | ||
498 | </p> | 513 | </p> |
499 | <pre class="code"> | 514 | <pre class="code"> |
500 | cd src | 515 | cd src |
diff --git a/doc/luajit.html b/doc/luajit.html index 15c5f12e..1a85f033 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; |
@@ -160,7 +163,10 @@ LuaJIT is Copyright © 2005-2014 Mike Pall, released under the | |||
160 | <tr><td>Windows</td><td>Linux</td><td>BSD</td><td>OSX</td><td>POSIX</td></tr> | 163 | <tr><td>Windows</td><td>Linux</td><td>BSD</td><td>OSX</td><td>POSIX</td></tr> |
161 | </table> | 164 | </table> |
162 | <table class="feature os os2"> | 165 | <table class="feature os os2"> |
163 | <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> | 166 | <tr><td><span style="font-size:90%;">Embedded</span></td><td>Android</td><td>iOS</td></tr> |
167 | </table> | ||
168 | <table class="feature os os3"> | ||
169 | <tr><td>PS3</td><td>PS4</td><td>PS Vita</td><td>Xbox 360</td></tr> | ||
164 | </table> | 170 | </table> |
165 | <table class="feature compiler"> | 171 | <table class="feature compiler"> |
166 | <tr><td>GCC</td><td>CLANG<br>LLVM</td><td>MSVC</td></tr> | 172 | <tr><td>GCC</td><td>CLANG<br>LLVM</td><td>MSVC</td></tr> |