Reduced stacksize.

This commit is contained in:
oliverschmidt 2007-11-27 12:24:03 +00:00
parent a677abb6b1
commit 380407ae5a
2 changed files with 15 additions and 7 deletions

View File

@ -1,7 +1,10 @@
# This file should be identical to the file '<cc65>/doc/apple2.cfg' # This file should be identical to the file '<cc65>/doc/apple2.cfg' with the
# with one exception being the expanded RAM size. Therefore the # following exceptions:
# binary needs to be loaded with the ProDOS 8 loader available at: # - Reduced stacksize: Contiki is designed to use extremely little stack.
# ftp://ftp.musoftware.de/pub/uz/cc65/contrib/loader-1.2.zip # 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 { FEATURES {
STARTADDRESS: default = $0800; STARTADDRESS: default = $0800;
@ -9,7 +12,7 @@ FEATURES {
MEMORY { MEMORY {
ZP: start = $0080, size = $001A, define = yes; ZP: start = $0080, size = $001A, define = yes;
HEADER: start = $0000, size = $0004, file = %O; 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 { SEGMENTS {
EXEHDR: load = HEADER, type = ro; EXEHDR: load = HEADER, type = ro;
@ -38,5 +41,5 @@ FEATURES {
count = __INTERRUPTOR_COUNT__; count = __INTERRUPTOR_COUNT__;
} }
SYMBOLS { SYMBOLS {
__STACKSIZE__ = $800; # 2K stack __STACKSIZE__ = $200; # 1/2K instead of 2K stack
} }

View File

@ -1,3 +1,8 @@
# This file should be identical to the file '<cc65>/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 { MEMORY {
ZP: start = $0002, size = $001A, type = rw, define = yes; ZP: start = $0002, size = $001A, type = rw, define = yes;
RAM: start = $07FF, size = $C801, file = %O, define = yes; RAM: start = $07FF, size = $C801, file = %O, define = yes;
@ -28,7 +33,7 @@ FEATURES {
count = __INTERRUPTOR_COUNT__; count = __INTERRUPTOR_COUNT__;
} }
SYMBOLS { SYMBOLS {
__STACKSIZE__ = $800; # 2K stack __STACKSIZE__ = $200; # 1/2K instead of 2K stack
} }