export CROSS_AS=ca65
export CROSS_LD=cl65
export CROSS_CC=cl65
-export CROSS_CCOPTS=-c -Or -t none -I$(ROOT_DIR)/cpu-6502 -I$(ROOT_DIR)/platform-$(TARGET) -I$(ROOT_DIR)/include
+export CROSS_CCOPTS=--all-fastcall -c -Or -t none -I$(ROOT_DIR)/cpu-6502 -I$(ROOT_DIR)/platform-$(TARGET) -I$(ROOT_DIR)/include
+export CROSS_CC_SEGDISC=--code-name DISCARD --rodata-name DISCARDDATA
export BINEXT = .o
else
export CROSS_AS=m6809-unknown-as
ZEROPAGE: load = RAMZ, type = zp, define = yes;
CODE: load = ROM0, type = ro;
RODATA: load = ROM0, type = ro;
+ DISCARD: load = ROM0, type = ro;
+ DISCARDDATA: load = ROM0, type = ro;
DATA: load = ROM0, run = RAM1, type = rw, define = yes;
BSS: load = RAM1, type = bss, define=yes;
COMMONDATA: load = RAM0, type= bss;