Update to SDCC 3.5.0
- Replace make_labels with sed script, because the map file format
changed.
- Remove __fastcall__ in the single place where it was still present
(leftover from CC65)
- Use __z88dk_fastcall where possible in the conio driver, speeding up
drawing a little further.
- Allow "unsafe reads" since we don't have any read-sensitive IO mapped
in memory space.
There changes free an extra 900 bytes of RAM, making us closer to 25K
RAM free (with memstat runnning).
diff --git a/contiki-cpc/Makefile.cpc b/contiki-cpc/Makefile.cpc
index 896da84..d2a303f 100644
--- a/contiki-cpc/Makefile.cpc
+++ b/contiki-cpc/Makefile.cpc
@@ -101,7 +101,8 @@
contiki: $(CONTIKI_OBJ)
$(LD) -f arch/contiki.lnk
- ./bin/make_labels contiki.map arch/contiki_labels.s
+ #./bin/make_labels contiki.map arch/contiki_labels.s
+ sed -n "/^_CODE\|^_DATA\|_INITIALIZED/,/^Area/ s/^ \([0-9A-F]*\) \([^ ]*\) .*/ \2 == 0x\1/p" contiki.map > arch/contiki_labels.s
makebin -p -s 65535 < contiki.ihx > contiki.raw
dd if=contiki.raw of=contiki.bin bs=256 skip=1
cpcfs contiki.dsk f