aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorMike Pall <mike>2009-12-22 20:27:20 +0100
committerMike Pall <mike>2009-12-22 20:27:20 +0100
commit6ce0c90ed642157f019b50ad1eb06246471a47b1 (patch)
treee3cc5e7207db2167f7f22a64ee4bfc8a93cd6ca5 /src/Makefile
parenta5faa29aa951d4fbd874b24350c315efc1cf3133 (diff)
downloadluajit-6ce0c90ed642157f019b50ad1eb06246471a47b1.tar.gz
luajit-6ce0c90ed642157f019b50ad1eb06246471a47b1.tar.bz2
luajit-6ce0c90ed642157f019b50ad1eb06246471a47b1.zip
Add build infrastructure for the SSE2-enabled interpreter.
Works on x86 now. Will be enabled by default on x64 (not ready, yet).
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index 209758fe..f0496248 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -62,6 +62,14 @@ XCFLAGS=
62# interpreter. Don't bother if your OS wouldn't run on them, anyway. 62# interpreter. Don't bother if your OS wouldn't run on them, anyway.
63#XCFLAGS+= -DLUAJIT_CPU_NOCMOV 63#XCFLAGS+= -DLUAJIT_CPU_NOCMOV
64# 64#
65# Use SSE2 instructions instead of x87 instructions in the x86 interpreter
66# (always enabled for x64). A pure interpreter built with this flag won't
67# run on older CPUs (before P4 or K8). There isn't much of a speed
68# difference, so this is not enabled by default.
69# The JIT compiler is not affected by this flag. It always uses runtime
70# CPU feature detection before emitting code for SSE2 up to SSE4.1.
71#XCFLAGS+= -DLUAJIT_CPU_SSE2
72#
65# Disable the JIT compiler, i.e. turn LuaJIT into a pure interpreter: 73# Disable the JIT compiler, i.e. turn LuaJIT into a pure interpreter:
66#XCFLAGS+= -DLUAJIT_DISABLE_JIT 74#XCFLAGS+= -DLUAJIT_DISABLE_JIT
67# 75#