Skip to content

Commit f677a8c

Browse files
authored
Merge pull request #135 from Pavel-Durov/reduce-interpreter-plt-overhead
Add -fno-plt optimisation to CFLAGS
2 parents 165e6c3 + e5b24a7 commit f677a8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ PLAT= guess
1313
OPTFLAGS=-O2
1414

1515
CC= gcc -std=gnu99
16-
CFLAGS= ${OPTFLAGS} -Wall -Wextra -DLUA_COMPAT_5_3 $(SYSCFLAGS) $(MYCFLAGS)
16+
# -fno-plt: bypass PLT for faster calls
17+
CFLAGS= ${OPTFLAGS} -Wall -Wextra -fno-plt -DLUA_COMPAT_5_3 $(SYSCFLAGS) $(MYCFLAGS)
1718
LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
1819
LIBS= -lm $(SYSLIBS) $(MYLIBS)
1920

0 commit comments

Comments
 (0)