aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMike Pall <mike>2014-04-27 00:10:34 +0200
committerMike Pall <mike>2014-04-27 00:10:34 +0200
commite26dc8a21556078ad82afb33c452ea72e7c6d9f2 (patch)
tree446096c4a50e9b023c567464a1c2bb2aa285fdae /doc
parentc8d1aff0bafcbfadb4a119685708c19788158cd6 (diff)
parent7a39be0ac45d8cd19c13bab38d4dda31ea599760 (diff)
downloadluajit-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.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 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">&nbsp;</td> 134<td class="compatos compatno">&nbsp;</td>
135</tr> 135</tr>
@@ -460,41 +460,56 @@ ISDKF="-arch armv7 -isysroot $ISDK/SDKs/$ISDKVER"
460make HOST_CC="gcc -m32 -arch i386" CROSS=$ISDKP TARGET_FLAGS="$ISDKF" \ 460make 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>
464You can cross-compile for <b id="ps3">PS3</b> using the PS3&nbsp;SDK from 466Building LuaJIT for consoles requires both a supported host compiler
465a Linux host or a Windows host (requires 32&nbsp;bit MinGW (GCC) on the host, 467(x86 or x64) and a cross-compiler (to PPC or ARM) from the official
466too). Due to restrictions on consoles, the JIT compiler is disabled and 468console SDK.
467only the fast interpreter is built:
468</p> 469</p>
469<pre class="code">
470make HOST_CC="gcc -m32" CROSS=ppu-lv2-
471</pre>
472<p> 470<p>
473You can cross-compile for <b id="ps4">PS4</b> from a Windows host using 471Due to restrictions on consoles, the JIT compiler is disabled and only
474the PS4&nbsp;SDK (ORBIS) plus 64&nbsp;bit MSVC. Due to restrictions on 472the fast interpreter is built. This is still faster than plain Lua,
475consoles, the JIT compiler is disabled and only the fast interpreter 473but much slower than the JIT compiler. The FFI is disabled, too, since
476is built. 474it's not very useful in such an environment.
477</p> 475</p>
478<p> 476<p>
479Open a "Visual Studio .NET Command Prompt" (64&nbsp;bit host compiler), 477The 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
481the following commands. This builds a static library <tt>libluajit.a</tt>,
482which can be linked against your game, just like the Lua library. 478which can be linked against your game, just like the Lua library.
483</p> 479</p>
480<p>
481To cross-compile for <b id="ps3">PS3</b> from a Linux host (requires
48232&nbsp;bit GCC, i.e. multilib Linux/x64) or a Windows host (requires
48332&nbsp;bit MinGW), run this command:
484</p>
485<pre class="code">
486make HOST_CC="gcc -m32" CROSS=ppu-lv2-
487</pre>
488<p>
489To cross-compile for <b id="ps4">PS4</b> from a Windows host,
490open a "Visual Studio .NET Command Prompt" (64&nbsp;bit host compiler),
491<tt>cd</tt> to the directory where you've unpacked the sources and
492run the following commands:
493</p>
484<pre class="code"> 494<pre class="code">
485cd src 495cd src
486ps4build 496ps4build
487</pre> 497</pre>
488<p> 498<p>
489You can cross-compile for <b id="xbox360">Xbox 360</b> using the 499To cross-compile for <b id="psvita">PS Vita</b> from a Windows host,
490Xbox&nbsp;360 SDK (MSVC + XEDK). Due to restrictions on consoles, the 500open a "Visual Studio .NET Command Prompt" (32&nbsp;bit host compiler),
491JIT compiler is disabled and only the fast interpreter is built. 501<tt>cd</tt> to the directory where you've unpacked the sources and
502run the following commands:
492</p> 503</p>
504<pre class="code">
505cd src
506psvitabuild
507</pre>
493<p> 508<p>
494Open a "Visual Studio .NET Command Prompt" (32&nbsp;bit host compiler), 509To cross-compile for <b id="xbox360">Xbox 360</b> from a Windows host,
510open a "Visual Studio .NET Command Prompt" (32&nbsp;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
496the following commands. This builds a static library <tt>luajit20.lib</tt>, 512the following commands:
497which can be linked against your game, just like the Lua library.
498</p> 513</p>
499<pre class="code"> 514<pre class="code">
500cd src 515cd 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 {
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;
@@ -160,7 +163,10 @@ LuaJIT is Copyright &copy; 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>