aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMike Pall <mike>2013-01-21 16:43:49 +0100
committerMike Pall <mike>2013-01-21 16:43:49 +0100
commit89e4650baef2f67b12b2a7d9c91a8809f552568a (patch)
tree103638bdfba80ad8defaca562765efdf98a99ee0 /doc
parent2c293a96deb33a9a24f7b9dacd301ab70edbd559 (diff)
downloadluajit-89e4650baef2f67b12b2a7d9c91a8809f552568a.tar.gz
luajit-89e4650baef2f67b12b2a7d9c91a8809f552568a.tar.bz2
luajit-89e4650baef2f67b12b2a7d9c91a8809f552568a.zip
Add XBox 360 port.
Thanks to Eddie Edwards.
Diffstat (limited to 'doc')
-rw-r--r--doc/install.html32
-rw-r--r--doc/luajit.html2
2 files changed, 28 insertions, 6 deletions
diff --git a/doc/install.html b/doc/install.html
index 967f25fd..bb625ec8 100644
--- a/doc/install.html
+++ b/doc/install.html
@@ -134,9 +134,9 @@ operating systems, CPUs and compilers:
134<tr class="even"> 134<tr class="even">
135<td class="compatcpu"><a href="#cross2">PPC</a></td> 135<td class="compatcpu"><a href="#cross2">PPC</a></td>
136<td class="compatos">GCC 4.3+</td> 136<td class="compatos">GCC 4.3+</td>
137<td class="compatos">GCC 4.3+<br>GCC 4.1 (<a href="#cross2">PS3</a>)</td> 137<td class="compatos">GCC 4.3+<br>GCC 4.1 (<a href="#ps3">PS3</a>)</td>
138<td class="compatos compatno">&nbsp;</td>
139<td class="compatos compatno">&nbsp;</td> 138<td class="compatos compatno">&nbsp;</td>
139<td class="compatos">XEDK (<a href="#xbox360">XBox 360</a>)</td>
140</tr> 140</tr>
141<tr class="odd"> 141<tr class="odd">
142<td class="compatcpu"><a href="#cross2">PPC/e500v2</a></td> 142<td class="compatcpu"><a href="#cross2">PPC/e500v2</a></td>
@@ -376,7 +376,7 @@ CPU.
376make HOST_CC="gcc -m32" CROSS=arm-linux-gnueabi- \ 376make HOST_CC="gcc -m32" CROSS=arm-linux-gnueabi- \
377 TARGET_CFLAGS="-mfloat-abi=soft" 377 TARGET_CFLAGS="-mfloat-abi=soft"
378 378
379# ARM soft-float ABI with VFP (example for Cortex-a8) 379# ARM soft-float ABI with VFP (example for Cortex-A8)
380make HOST_CC="gcc -m32" CROSS=arm-linux-gnueabi- \ 380make HOST_CC="gcc -m32" CROSS=arm-linux-gnueabi- \
381 TARGET_CFLAGS="-mcpu=cortex-a8 -mfloat-abi=softfp" 381 TARGET_CFLAGS="-mcpu=cortex-a8 -mfloat-abi=softfp"
382 382
@@ -387,8 +387,6 @@ make HOST_CC="gcc -m32" CROSS=arm-linux-gnueabihf-
387make HOST_CC="gcc -m32" CROSS=powerpc-linux-gnu- 387make HOST_CC="gcc -m32" CROSS=powerpc-linux-gnu-
388# PPC/e500v2 (fast interpreter only) 388# PPC/e500v2 (fast interpreter only)
389make HOST_CC="gcc -m32" CROSS=powerpc-e500v2-linux-gnuspe- 389make HOST_CC="gcc -m32" CROSS=powerpc-e500v2-linux-gnuspe-
390# PS3 (fast interpreter only)
391make HOST_CC="gcc -m32" CROSS=ppu-lv2-
392 390
393# MIPS big-endian 391# MIPS big-endian
394make HOST_CC="gcc -m32" CROSS=mips-linux- 392make HOST_CC="gcc -m32" CROSS=mips-linux-
@@ -460,6 +458,30 @@ ISDKF="-arch armv7 -isysroot $ISDK/SDKs/$ISDKVER"
460make HOST_CC="gcc -m32 -arch i386" CROSS=$ISDKP TARGET_FLAGS="$ISDKF" \ 458make HOST_CC="gcc -m32 -arch i386" CROSS=$ISDKP TARGET_FLAGS="$ISDKF" \
461 TARGET_SYS=iOS 459 TARGET_SYS=iOS
462</pre> 460</pre>
461<p>
462You can cross-compile for <b id="ps3">PS3</b> using the PS3&nbsp;SDK from
463a Linux host or a Windows host (requires 32 bit MinGW (GCC) on the host,
464too). Due to restrictions on consoles, the JIT compiler is disabled and
465only the fast interpreter is built:
466</p>
467<pre class="code">
468make HOST_CC="gcc -m32" CROSS=ppu-lv2-
469</pre>
470<p>
471You can cross-compile for <b id="xbox360">XBox 360</b> using the
472XBox&nbsp;360 SDK (MSVC + XEDK). Due to restrictions on consoles, the
473JIT compiler is disabled and only the fast interpreter is built.
474</p>
475<p>
476Open a "Visual Studio .NET Command Prompt" (32&nbsp;bit host compiler),
477<tt>cd</tt> to the directory where you've unpacked the sources and run
478the following commands. This builds a static library <tt>luajit20.lib</tt>,
479which can be linked against your game, just like the Lua library.
480</p>
481<pre class="code">
482cd src
483xedkbuild
484</pre>
463 485
464<h2 id="embed">Embedding LuaJIT</h2> 486<h2 id="embed">Embedding LuaJIT</h2>
465<p> 487<p>
diff --git a/doc/luajit.html b/doc/luajit.html
index 8fb0e05f..51338412 100644
--- a/doc/luajit.html
+++ b/doc/luajit.html
@@ -158,7 +158,7 @@ LuaJIT is Copyright &copy; 2005-2012 Mike Pall, released under the
158<tr><td>Windows</td><td>Linux</td><td>BSD</td><td>OSX</td><td>POSIX</td></tr> 158<tr><td>Windows</td><td>Linux</td><td>BSD</td><td>OSX</td><td>POSIX</td></tr>
159</table> 159</table>
160<table class="feature os os2"> 160<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></tr> 161<tr><td><span style="font-size:90%;">Embedded</span></td><td>Android</td><td>iOS</td><td>PS3</td><td>XBox 360</td></tr>
162</table> 162</table>
163<table class="feature compiler"> 163<table class="feature compiler">
164<tr><td>GCC</td><td>CLANG<br>LLVM</td><td>MSVC</td></tr> 164<tr><td>GCC</td><td>CLANG<br>LLVM</td><td>MSVC</td></tr>