aboutsummaryrefslogtreecommitdiff
path: root/doc/install.html
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/install.html
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/install.html')
-rw-r--r--doc/install.html32
1 files changed, 27 insertions, 5 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>