65c816: use register ops here and there
authorAlan Cox <alan@linux.intel.com>
Thu, 14 Dec 2017 15:21:34 +0000 (15:21 +0000)
committerAlan Cox <alan@linux.intel.com>
Thu, 14 Dec 2017 15:21:34 +0000 (15:21 +0000)
We need this to get better performance out of cc65.

We may be able to justify -Oi but the code grows a lot so it may become a
size problem if we did.

Kernel/cpu-65c816/rules.mk

index 784b1f6..da27a48 100644 (file)
@@ -1,7 +1,7 @@
 export CROSS_AS=ca65
 export CROSS_LD=cl65
 export CROSS_CC=cl65
-export CROSS_CCOPTS=--cpu 65c02 -c -O -t none -I$(ROOT_DIR)/cpu-65c816 -I$(ROOT_DIR)/cpu-6502 -I$(ROOT_DIR)/platform-$(TARGET) -I$(ROOT_DIR)/include
+export CROSS_CCOPTS=--cpu 65c02 -c -O -Os -Or -t none -I$(ROOT_DIR)/cpu-65c816 -I$(ROOT_DIR)/cpu-6502 -I$(ROOT_DIR)/platform-$(TARGET) -I$(ROOT_DIR)/include
 #
 #      It really doesn't matter how we map the segments as it's one binary
 #      with no banking or tricks. The only exception is the discard area