Use computed goto instead of switching op-codes.

pull/482/head
AZ Huang 2014-04-14 23:22:44 +08:00
rodzic 5904dad842
commit b1f692e82e
2 zmienionych plików z 751 dodań i 639 usunięć

1388
py/vm.c

Plik diff jest za duży Load Diff

Wyświetl plik

@ -11,7 +11,7 @@ QSTR_DEFS = qstrdefsport.h
include ../py/py.mk
# compiler settings
CFLAGS = -I. -I$(PY_SRC) -Wall -Werror -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT)
CFLAGS = -I. -I$(PY_SRC) -Wall -Werror -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT) -DMICROPY_USE_COMPUTED_GOTO
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)