From 380407ae5a83b69d468324a71a363075d75fc607 Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Tue, 27 Nov 2007 12:24:03 +0000 Subject: [PATCH] Reduced stacksize. --- platform/apple2enh/linker.cfg | 15 +++++++++------ platform/c64/linker.cfg | 7 ++++++- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/platform/apple2enh/linker.cfg b/platform/apple2enh/linker.cfg index 13319fb0f..bd94a4ac7 100644 --- a/platform/apple2enh/linker.cfg +++ b/platform/apple2enh/linker.cfg @@ -1,7 +1,10 @@ -# This file should be identical to the file '/doc/apple2.cfg' -# with one exception being the expanded RAM size. Therefore the -# binary needs to be loaded with the ProDOS 8 loader available at: -# ftp://ftp.musoftware.de/pub/uz/cc65/contrib/loader-1.2.zip +# This file should be identical to the file '/doc/apple2.cfg' with the +# following exceptions: +# - Reduced stacksize: Contiki is designed to use extremely little stack. +# The applications coming with Contiki run even with a $100 byte stack. +# - Expanded RAM size: Allow applications to overlay BASIC.SYSTEM if needed. +# In that case the binary must be loaded with the ProDOS 8 loader available +# at: ftp://ftp.musoftware.de/pub/uz/cc65/contrib/loader-1.2.zip FEATURES { STARTADDRESS: default = $0800; @@ -9,7 +12,7 @@ FEATURES { MEMORY { ZP: start = $0080, size = $001A, define = yes; HEADER: start = $0000, size = $0004, file = %O; - RAM: start = %S, size = $BF00 - %S, file = %O; # BF00 instead of 9600 + RAM: start = %S, size = $BF00 - %S, file = %O; # $BF00 instead of $9600 } SEGMENTS { EXEHDR: load = HEADER, type = ro; @@ -38,5 +41,5 @@ FEATURES { count = __INTERRUPTOR_COUNT__; } SYMBOLS { - __STACKSIZE__ = $800; # 2K stack + __STACKSIZE__ = $200; # 1/2K instead of 2K stack } diff --git a/platform/c64/linker.cfg b/platform/c64/linker.cfg index 2ed1ede15..98207fe9d 100644 --- a/platform/c64/linker.cfg +++ b/platform/c64/linker.cfg @@ -1,3 +1,8 @@ +# This file should be identical to the file '/doc/c64.cfg' with the +# following exception: +# - Reduced stacksize: Contiki is designed to use extremely little stack. +# The applications coming with Contiki run even with a $100 byte stack. + MEMORY { ZP: start = $0002, size = $001A, type = rw, define = yes; RAM: start = $07FF, size = $C801, file = %O, define = yes; @@ -28,7 +33,7 @@ FEATURES { count = __INTERRUPTOR_COUNT__; } SYMBOLS { - __STACKSIZE__ = $800; # 2K stack + __STACKSIZE__ = $200; # 1/2K instead of 2K stack }