diff options
author | Damien George <damien.p.george@gmail.com> | 2014-01-04 13:55:24 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-01-04 13:55:24 +0000 |
commit | e67ed5d285bb2ae7b83eb8be3ee488ab08fa4db1 (patch) | |
tree | b11250057a7957da577daab994e91ef0a6718514 /unix | |
parent | 32f88410a153967af3f013d02a1a662aec19ec04 (diff) | |
download | micropython-e67ed5d285bb2ae7b83eb8be3ee488ab08fa4db1.tar.gz micropython-e67ed5d285bb2ae7b83eb8be3ee488ab08fa4db1.zip |
Improve configurability for native x64/thumb emitter.
With MICROPY_EMIT_X64 and MICROPY_EMIT_THUMB disabled, the respective
emitters and assemblers will not be included in the code. This can
significantly reduce binary size for unix version.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/Makefile b/unix/Makefile index 38d6ba8e15..a5c6ddcc04 100644 --- a/unix/Makefile +++ b/unix/Makefile @@ -83,10 +83,10 @@ $(BUILD)/%.o: $(PYSRC)/%.S $(BUILD)/%.o: $(PYSRC)/%.c mpconfigport.h $(CC) $(CFLAGS) -c -o $@ $< -$(BUILD)/emitnx64.o: $(PYSRC)/emitnative.c $(PYSRC)/emit.h +$(BUILD)/emitnx64.o: $(PYSRC)/emitnative.c $(PYSRC)/emit.h mpconfigport.h $(CC) $(CFLAGS) -DN_X64 -c -o $@ $< -$(BUILD)/emitnthumb.o: $(PYSRC)/emitnative.c $(PYSRC)/emit.h +$(BUILD)/emitnthumb.o: $(PYSRC)/emitnative.c $(PYSRC)/emit.h mpconfigport.h $(CC) $(CFLAGS) -DN_THUMB -c -o $@ $< # optimising vm for speed, adds only a small amount to code size but makes a huge difference to speed (20% faster) |