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'
# 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 '<cc65>/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
}

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 {
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
}