From: Alan Cox Date: Fri, 28 Nov 2014 22:11:06 +0000 (+0000) Subject: 6809: Switch to -Os X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=7185e6564d47f48d5bc041678d72b762dbabe15f;p=FUZIX.git 6809: Switch to -Os We've updated the helpers so can now do this. A minimal build 6809 image currently weighs in at 24K code, 8K data. Some of this is the CPU, some the calling conventions, and some gcc. --- diff --git a/Kernel/Makefile b/Kernel/Makefile index 7382edb2..82544073 100644 --- a/Kernel/Makefile +++ b/Kernel/Makefile @@ -45,7 +45,7 @@ export CROSS_AS=m6809-unknown-as export CROSS_LD=lwlink export CROSS_CC = m6809-unknown-gcc #export CROSS_CCOPTS=-Wall -O2 -I$(ROOT_DIR)/cpu-6809 -I$(ROOT_DIR)/platform-$(TARGET) -I$(ROOT_DIR)/include -export CROSS_CCOPTS=-c -Wall -O2 -msoft-reg-count=0 -mfar-stack-param -I$(ROOT_DIR)/cpu-6809 -I$(ROOT_DIR)/platform-$(TARGET) -I$(ROOT_DIR)/include +export CROSS_CCOPTS=-c -Wall -Os -msoft-reg-count=0 -mfar-stack-param -I$(ROOT_DIR)/cpu-6809 -I$(ROOT_DIR)/platform-$(TARGET) -I$(ROOT_DIR)/include export CROSS_CC_SEG1=-mcode-section=.text -mfar-code-page=1 export CROSS_CC_SEG2=-mcode-section=.text2 -mfar-code-page=2 export CROSS_CC_SEGDISC=-mcode-section=.discard -mfar-code-page=3