Skip to content

Instantly share code, notes, and snippets.

@malkia
Created March 20, 2012 15:50
Show Gist options
  • Save malkia/2137365 to your computer and use it in GitHub Desktop.
Save malkia/2137365 to your computer and use it in GitHub Desktop.
build script
+ffi="Enable he FFI extension. Disabling it would reduce the size of the LuaJIT executable. But please consider that the FFI library is compiled-in, but NOT loaded by default. It only allocates any memory, if you actually make use of it"
-lua52compat="Enable some upwards-compatible features from Lua 5.2 that are unlikely to break existing code (e.g. __pairs). Note that this does not provide"
+jit="Enable the JIT compiler, disabling it would turn LuaJIT into a pure interpreter"
+sse2="x86 only: use SSE2 instead of x87 instructions in the interpreter"
+cmov="Enable the use of CMOV and FCOMI*/FUCOMI* instructions in the interpreter. Disable it only if you intend to use REALLY ANCIENT CPUs (before Pentium Pro, or on the VIA C3). This generally slows down the interpreter. Don't bother if your OS wouldn't run on them, anyway."
+nummode1="Some architectures (e.g. PPC) can use either single-number (+nummode1) or dual-number (+nummode2) mode. Please see LJ_ARCH_NUMMODE in lj_arch.h for details."
+nummode2=-nummode1
-sysmalloc="Use the system provided memory allocator (realloc) instead of the bundled memory allocator. This is slower, but sometimes helpful for debugging. It's helpful for Valgrind's memcheck tool, too. This option cannot be enabled on x64, since the built-in allocator is mandatory."
-valgrind="This define is required to run LuaJIT under Valgrind. The Valgrind header files must be installed. You should enable debug information, too."
-gdbjit="This is the client for the GDB JIT API. GDB 7.0 or higher is required to make use of it. See lj_gdbjit.c for details. Enabling this causes a non-negligible overhead, even when not running under GDB."
-apicheck="Turn on assertions for the Lua/C API to debug problems with lua_* calls. This is rather slow -- use only while developing C libraries/embeddings."
-asserts="Turn on assertions for the whole LuaJIT VM. This significantly slows down everything. Use only if you suspect a problem with LuaJIT itself."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment