diff options
Diffstat (limited to 'doc/install.html')
| -rw-r--r-- | doc/install.html | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/doc/install.html b/doc/install.html index efeda33c..230e9386 100644 --- a/doc/install.html +++ b/doc/install.html | |||
| @@ -175,6 +175,14 @@ MSVC or WinSDK.</li> | |||
| 175 | Please read the instructions given in these files, before changing | 175 | Please read the instructions given in these files, before changing |
| 176 | any settings. | 176 | any settings. |
| 177 | </p> | 177 | </p> |
| 178 | <p> | ||
| 179 | LuaJIT on x64 currently uses 32 bit GC objects by default. | ||
| 180 | <tt>LJ_GC64</tt> mode may be explicitly enabled: | ||
| 181 | add <tt>XCFLAGS=-DLUAJIT_ENABLE_GC64</tt> to the make command or run | ||
| 182 | <tt>msvcbuild gc64</tt> for MSVC/WinSDK. Please check the note | ||
| 183 | about the <a href="extensions.html#string_dump">bytecode format</a> | ||
| 184 | differences, too. | ||
| 185 | </p> | ||
| 178 | 186 | ||
| 179 | <h2 id="posix">POSIX Systems (Linux, OSX, *BSD etc.)</h2> | 187 | <h2 id="posix">POSIX Systems (Linux, OSX, *BSD etc.)</h2> |
| 180 | <h3>Prerequisites</h3> | 188 | <h3>Prerequisites</h3> |
| @@ -584,14 +592,11 @@ intend to load Lua/C modules at runtime. | |||
| 584 | </li> | 592 | </li> |
| 585 | <li> | 593 | <li> |
| 586 | If you're building a 64 bit application on OSX which links directly or | 594 | If you're building a 64 bit application on OSX which links directly or |
| 587 | indirectly against LuaJIT, you need to link your main executable | 595 | indirectly against LuaJIT which is not built for <tt>LJ_GC64</tt> mode, |
| 588 | with these flags: | 596 | you need to link your main executable with these flags: |
| 589 | <pre class="code"> | 597 | <pre class="code"> |
| 590 | -pagezero_size 10000 -image_base 100000000 | 598 | -pagezero_size 10000 -image_base 100000000 |
| 591 | </pre> | 599 | </pre> |
| 592 | Also, it's recommended to <tt>rebase</tt> all (self-compiled) shared libraries | ||
| 593 | which are loaded at runtime on OSX/x64 (e.g. C extension modules for Lua). | ||
| 594 | See: <tt>man rebase</tt> | ||
| 595 | </li> | 600 | </li> |
| 596 | </ul> | 601 | </ul> |
| 597 | <p>Additional hints for initializing LuaJIT using the C API functions:</p> | 602 | <p>Additional hints for initializing LuaJIT using the C API functions:</p> |
