diff options
author | Mike Pall <mike> | 2016-05-28 05:10:55 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2016-05-28 05:10:55 +0200 |
commit | d9986fbadb6c50b826e39e5f690bcf0b4cd6a20b (patch) | |
tree | c89961a1a8949c19872aa39269c2408dd6595733 /doc | |
parent | e3c4c9af0f07a114fb754fed6ac358a102f49e2f (diff) | |
download | luajit-d9986fbadb6c50b826e39e5f690bcf0b4cd6a20b.tar.gz luajit-d9986fbadb6c50b826e39e5f690bcf0b4cd6a20b.tar.bz2 luajit-d9986fbadb6c50b826e39e5f690bcf0b4cd6a20b.zip |
MIPS64, part 1: Add MIPS64 support to interpreter.
Contributed by Djordje Kovacevic and Stefan Pejic from RT-RK.com.
Sponsored by Cisco Systems, Inc.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ext_jit.html | 2 | ||||
-rw-r--r-- | doc/install.html | 13 | ||||
-rw-r--r-- | doc/luajit.html | 4 |
3 files changed, 12 insertions, 7 deletions
diff --git a/doc/ext_jit.html b/doc/ext_jit.html index 9489c6f5..86098019 100644 --- a/doc/ext_jit.html +++ b/doc/ext_jit.html | |||
@@ -153,7 +153,7 @@ Contains the target OS name: | |||
153 | <h3 id="jit_arch"><tt>jit.arch</tt></h3> | 153 | <h3 id="jit_arch"><tt>jit.arch</tt></h3> |
154 | <p> | 154 | <p> |
155 | Contains the target architecture name: | 155 | Contains the target architecture name: |
156 | "x86", "x64", "arm", "ppc", or "mips". | 156 | "x86", "x64", "arm", "arm64", "ppc", "mips" or "mips64". |
157 | </p> | 157 | </p> |
158 | 158 | ||
159 | <h2 id="jit_opt"><tt>jit.opt.*</tt> — JIT compiler optimization control</h2> | 159 | <h2 id="jit_opt"><tt>jit.opt.*</tt> — JIT compiler optimization control</h2> |
diff --git a/doc/install.html b/doc/install.html index 9963010d..38c9a6bb 100644 --- a/doc/install.html +++ b/doc/install.html | |||
@@ -148,7 +148,7 @@ operating systems, CPUs and compilers: | |||
148 | <td class="compatos">XEDK (<a href="#xbox360">Xbox 360</a>)</td> | 148 | <td class="compatos">XEDK (<a href="#xbox360">Xbox 360</a>)</td> |
149 | </tr> | 149 | </tr> |
150 | <tr class="even"> | 150 | <tr class="even"> |
151 | <td class="compatcpu"><a href="#cross2">MIPS</a></td> | 151 | <td class="compatcpu"><a href="#cross2">MIPS32<br>MIPS64</a></td> |
152 | <td class="compatos">GCC 4.3+</td> | 152 | <td class="compatos">GCC 4.3+</td> |
153 | <td class="compatos">GCC 4.3+</td> | 153 | <td class="compatos">GCC 4.3+</td> |
154 | <td class="compatos compatno"> </td> | 154 | <td class="compatos compatno"> </td> |
@@ -386,7 +386,7 @@ important to compile with the proper CPU or architecture settings: | |||
386 | <li>The best way to get consistent results is to specify the correct settings when building the toolchain yourself.</li> | 386 | <li>The best way to get consistent results is to specify the correct settings when building the toolchain yourself.</li> |
387 | <li>For a pre-built, generic toolchain add <tt>-mcpu=...</tt> or <tt>-march=...</tt> and other necessary flags to <tt>TARGET_CFLAGS</tt>.</li> | 387 | <li>For a pre-built, generic toolchain add <tt>-mcpu=...</tt> or <tt>-march=...</tt> and other necessary flags to <tt>TARGET_CFLAGS</tt>.</li> |
388 | <li>For ARM it's important to have the correct <tt>-mfloat-abi=...</tt> setting, too. Otherwise LuaJIT may not run at the full performance of your target CPU.</li> | 388 | <li>For ARM it's important to have the correct <tt>-mfloat-abi=...</tt> setting, too. Otherwise LuaJIT may not run at the full performance of your target CPU.</li> |
389 | <li>For MIPS it's important to select a supported ABI (o32 on MIPS32) and consistently compile your project either with hard-float or soft-float compiler settings. Do not use <tt>-mips16</tt>.</li> | 389 | <li>For MIPS it's important to select a supported ABI (o32 on MIPS32, n64 on MIPS64) and consistently compile your project either with hard-float or soft-float compiler settings. Do not use <tt>-mips16</tt>.</li> |
390 | </ul> | 390 | </ul> |
391 | <p> | 391 | <p> |
392 | Here are some examples for targets with a different CPU than the host: | 392 | Here are some examples for targets with a different CPU than the host: |
@@ -409,10 +409,15 @@ make CROSS=aarch64-linux- | |||
409 | # PPC | 409 | # PPC |
410 | make HOST_CC="gcc -m32" CROSS=powerpc-linux-gnu- | 410 | make HOST_CC="gcc -m32" CROSS=powerpc-linux-gnu- |
411 | 411 | ||
412 | # MIPS big-endian | 412 | # MIPS32 big-endian |
413 | make HOST_CC="gcc -m32" CROSS=mips-linux- | 413 | make HOST_CC="gcc -m32" CROSS=mips-linux- |
414 | # MIPS little-endian | 414 | # MIPS32 little-endian |
415 | make HOST_CC="gcc -m32" CROSS=mipsel-linux- | 415 | make HOST_CC="gcc -m32" CROSS=mipsel-linux- |
416 | |||
417 | # MIPS64 big-endian | ||
418 | make CROSS=mips-linux- TARGET_CFLAGS="-mips64r2 -mabi=64" | ||
419 | # MIPS64 little-endian | ||
420 | make CROSS=mipsel-linux- TARGET_CFLAGS="-mips64r2 -mabi=64" | ||
416 | </pre> | 421 | </pre> |
417 | <p> | 422 | <p> |
418 | You can cross-compile for <b id="android">Android</b> using the <a href="https://developer.android.com/ndk/index.html">Android NDK</a>. | 423 | You can cross-compile for <b id="android">Android</b> using the <a href="https://developer.android.com/ndk/index.html">Android NDK</a>. |
diff --git a/doc/luajit.html b/doc/luajit.html index c7a92b86..44a7b8a1 100644 --- a/doc/luajit.html +++ b/doc/luajit.html | |||
@@ -169,10 +169,10 @@ LuaJIT is Copyright © 2005-2016 Mike Pall, released under the | |||
169 | <tr><td>PS3</td><td>PS4</td><td>PS Vita</td><td>Xbox 360</td><td>Xbox One</td></tr> | 169 | <tr><td>PS3</td><td>PS4</td><td>PS Vita</td><td>Xbox 360</td><td>Xbox One</td></tr> |
170 | </table> | 170 | </table> |
171 | <table class="feature compiler"> | 171 | <table class="feature compiler"> |
172 | <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> |
173 | </table> | 173 | </table> |
174 | <table class="feature cpu"> | 174 | <table class="feature cpu"> |
175 | <tr><td>x86</td><td>x64</td><td>ARM</td><td>ARM64</td><td>PPC</td><td>MIPS</td></tr> | 175 | <tr><td>x86<br>x64</td><td>ARM<br>ARM64</td><td>PPC</td><td>MIPS32<br>MIPS64</td></tr> |
176 | </table> | 176 | </table> |
177 | <table class="feature fcompat"> | 177 | <table class="feature fcompat"> |
178 | <tr><td>Lua 5.1<br>API+ABI</td><td>+ JIT</td><td>+ BitOp</td><td>+ FFI</td><td>Drop-in<br>DLL/.so</td></tr> | 178 | <tr><td>Lua 5.1<br>API+ABI</td><td>+ JIT</td><td>+ BitOp</td><td>+ FFI</td><td>Drop-in<br>DLL/.so</td></tr> |