diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-01-25 16:34:23 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-01-25 16:34:23 (GMT) |
commit | b52ec78baf236272800017fdb2b7f243741c1851 (patch) | |
tree | 9413ca8258942269b39cc831a6788be0c772f203 /Makefile.pre.in | |
parent | e6aad75f2ba571de7f1bebcf6b1251c2c22360f1 (diff) | |
download | cpython-b52ec78baf236272800017fdb2b7f243741c1851.zip cpython-b52ec78baf236272800017fdb2b7f243741c1851.tar.gz cpython-b52ec78baf236272800017fdb2b7f243741c1851.tar.bz2 |
Issue #4753: By enabling a configure option named '--with-computed-gotos'
on compilers that support it (notably: gcc, SunPro, icc), the bytecode
evaluation loop is compiled with a new dispatch mechanism which gives
speedups of up to 20%, depending on the system, on various benchmarks.
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index f3462d7..9c7e873 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -247,6 +247,16 @@ ASDLGEN= $(srcdir)/Parser/asdl_c.py ########################################################################## # Python + +OPCODETARGETS_H= \ + $(srcdir)/Python/opcode_targets.h + +OPCODETARGETGEN= \ + $(srcdir)/Python/makeopcodetargets.py + +OPCODETARGETGEN_FILES= \ + $(OPCODETARGETGEN) $(srcdir)/Lib/opcode.py + PYTHON_OBJS= \ Python/_warnings.o \ Python/Python-ast.o \ @@ -567,6 +577,11 @@ Objects/unicodeobject.o: $(srcdir)/Objects/unicodeobject.c \ $(BYTESTR_DEPS) \ $(srcdir)/Objects/stringlib/formatter.h +$(OPCODETARGETS_H): $(OPCODETARGETGEN_FILES) + $(OPCODETARGETGEN) $(OPCODETARGETS_H) + +Python/ceval.o: $(OPCODETARGETS_H) + Python/formatter_unicode.o: $(srcdir)/Python/formatter_unicode.c \ $(BYTESTR_DEPS) |