From ba46bab0097d9c02a7f67501f289a1fba3b253d1 Mon Sep 17 00:00:00 2001 From: "ol.sc" Date: Thu, 1 Oct 2009 17:00:10 +0000 Subject: [PATCH] Made stacksize user-adjustable on the cmdline. git-svn-id: svn://svn.cc65.org/cc65/trunk@4293 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/ld65/cfg/apple2-dos33.cfg | 2 +- src/ld65/cfg/apple2-loader.cfg | 2 +- src/ld65/cfg/apple2-reboot.cfg | 2 +- src/ld65/cfg/apple2-system.cfg | 2 +- src/ld65/cfg/apple2.cfg | 2 +- src/ld65/cfg/apple2enh-dos33.cfg | 2 +- src/ld65/cfg/apple2enh-loader.cfg | 2 +- src/ld65/cfg/apple2enh-reboot.cfg | 2 +- src/ld65/cfg/apple2enh-system.cfg | 2 +- src/ld65/cfg/apple2enh.cfg | 2 +- src/ld65/cfg/atari.cfg | 4 ++-- src/ld65/cfg/atmos.cfg | 2 +- src/ld65/cfg/bbc.cfg | 2 +- src/ld65/cfg/c128.cfg | 2 +- src/ld65/cfg/c16.cfg | 2 +- src/ld65/cfg/c64.cfg | 2 +- src/ld65/cfg/cbm510.cfg | 2 +- src/ld65/cfg/cbm610.cfg | 2 +- src/ld65/cfg/geos.cfg | 2 +- src/ld65/cfg/lunix.cfg | 4 ++-- src/ld65/cfg/lynx.cfg | 2 +- src/ld65/cfg/nes.cfg | 2 +- src/ld65/cfg/none.cfg | 2 +- src/ld65/cfg/pet.cfg | 2 +- src/ld65/cfg/plus4.cfg | 2 +- src/ld65/cfg/vic20-32k.cfg | 2 +- src/ld65/cfg/vic20.cfg | 3 ++- 27 files changed, 30 insertions(+), 29 deletions(-) diff --git a/src/ld65/cfg/apple2-dos33.cfg b/src/ld65/cfg/apple2-dos33.cfg index ca8458b8c..22168e4b2 100644 --- a/src/ld65/cfg/apple2-dos33.cfg +++ b/src/ld65/cfg/apple2-dos33.cfg @@ -38,5 +38,5 @@ FEATURES { count = __INTERRUPTOR_COUNT__; } SYMBOLS { - __STACKSIZE__ = $0800; # 2k stack + __STACKSIZE__: value = $0800, weak = yes; # 2k stack } diff --git a/src/ld65/cfg/apple2-loader.cfg b/src/ld65/cfg/apple2-loader.cfg index c8898c5c0..f79e0a8c0 100644 --- a/src/ld65/cfg/apple2-loader.cfg +++ b/src/ld65/cfg/apple2-loader.cfg @@ -38,5 +38,5 @@ FEATURES { count = __INTERRUPTOR_COUNT__; } SYMBOLS { - __STACKSIZE__ = $0800; # 2k stack + __STACKSIZE__: value = $0800, weak = yes; # 2k stack } diff --git a/src/ld65/cfg/apple2-reboot.cfg b/src/ld65/cfg/apple2-reboot.cfg index 302fb6dce..f49c74ec2 100644 --- a/src/ld65/cfg/apple2-reboot.cfg +++ b/src/ld65/cfg/apple2-reboot.cfg @@ -39,5 +39,5 @@ FEATURES { count = __INTERRUPTOR_COUNT__; } SYMBOLS { - __STACKSIZE__ = $0800; # 2k stack + __STACKSIZE__: value = $0800, weak = yes; # 2k stack } diff --git a/src/ld65/cfg/apple2-system.cfg b/src/ld65/cfg/apple2-system.cfg index 297fd3422..9a59946a0 100644 --- a/src/ld65/cfg/apple2-system.cfg +++ b/src/ld65/cfg/apple2-system.cfg @@ -35,5 +35,5 @@ FEATURES { count = __INTERRUPTOR_COUNT__; } SYMBOLS { - __STACKSIZE__ = $0800; # 2k stack + __STACKSIZE__: value = $0800, weak = yes; # 2k stack } diff --git a/src/ld65/cfg/apple2.cfg b/src/ld65/cfg/apple2.cfg index e1ef86597..577caab1b 100644 --- a/src/ld65/cfg/apple2.cfg +++ b/src/ld65/cfg/apple2.cfg @@ -38,5 +38,5 @@ FEATURES { count = __INTERRUPTOR_COUNT__; } SYMBOLS { - __STACKSIZE__ = $0800; # 2k stack + __STACKSIZE__: value = $0800, weak = yes; # 2k stack } diff --git a/src/ld65/cfg/apple2enh-dos33.cfg b/src/ld65/cfg/apple2enh-dos33.cfg index ca8458b8c..22168e4b2 100644 --- a/src/ld65/cfg/apple2enh-dos33.cfg +++ b/src/ld65/cfg/apple2enh-dos33.cfg @@ -38,5 +38,5 @@ FEATURES { count = __INTERRUPTOR_COUNT__; } SYMBOLS { - __STACKSIZE__ = $0800; # 2k stack + __STACKSIZE__: value = $0800, weak = yes; # 2k stack } diff --git a/src/ld65/cfg/apple2enh-loader.cfg b/src/ld65/cfg/apple2enh-loader.cfg index c8898c5c0..f79e0a8c0 100644 --- a/src/ld65/cfg/apple2enh-loader.cfg +++ b/src/ld65/cfg/apple2enh-loader.cfg @@ -38,5 +38,5 @@ FEATURES { count = __INTERRUPTOR_COUNT__; } SYMBOLS { - __STACKSIZE__ = $0800; # 2k stack + __STACKSIZE__: value = $0800, weak = yes; # 2k stack } diff --git a/src/ld65/cfg/apple2enh-reboot.cfg b/src/ld65/cfg/apple2enh-reboot.cfg index 302fb6dce..f49c74ec2 100644 --- a/src/ld65/cfg/apple2enh-reboot.cfg +++ b/src/ld65/cfg/apple2enh-reboot.cfg @@ -39,5 +39,5 @@ FEATURES { count = __INTERRUPTOR_COUNT__; } SYMBOLS { - __STACKSIZE__ = $0800; # 2k stack + __STACKSIZE__: value = $0800, weak = yes; # 2k stack } diff --git a/src/ld65/cfg/apple2enh-system.cfg b/src/ld65/cfg/apple2enh-system.cfg index 297fd3422..9a59946a0 100644 --- a/src/ld65/cfg/apple2enh-system.cfg +++ b/src/ld65/cfg/apple2enh-system.cfg @@ -35,5 +35,5 @@ FEATURES { count = __INTERRUPTOR_COUNT__; } SYMBOLS { - __STACKSIZE__ = $0800; # 2k stack + __STACKSIZE__: value = $0800, weak = yes; # 2k stack } diff --git a/src/ld65/cfg/apple2enh.cfg b/src/ld65/cfg/apple2enh.cfg index e1ef86597..577caab1b 100644 --- a/src/ld65/cfg/apple2enh.cfg +++ b/src/ld65/cfg/apple2enh.cfg @@ -38,5 +38,5 @@ FEATURES { count = __INTERRUPTOR_COUNT__; } SYMBOLS { - __STACKSIZE__ = $0800; # 2k stack + __STACKSIZE__: value = $0800, weak = yes; # 2k stack } diff --git a/src/ld65/cfg/atari.cfg b/src/ld65/cfg/atari.cfg index 8d949c680..1b8ee8b2a 100644 --- a/src/ld65/cfg/atari.cfg +++ b/src/ld65/cfg/atari.cfg @@ -2,8 +2,8 @@ FEATURES { STARTADDRESS: default = $2E00; } SYMBOLS { - __STACKSIZE__ = $800; # 2K stack - __RESERVED_MEMORY__: value = $0, weak = yes; + __STACKSIZE__: value = $0800, weak = yes; # 2k stack + __RESERVED_MEMORY__: value = $0000, weak = yes; } MEMORY { ZP: start = $0082, size = $007E, type = rw, define = yes; diff --git a/src/ld65/cfg/atmos.cfg b/src/ld65/cfg/atmos.cfg index 5ab8702dd..b6a3704d5 100644 --- a/src/ld65/cfg/atmos.cfg +++ b/src/ld65/cfg/atmos.cfg @@ -31,7 +31,7 @@ FEATURES { count = __INTERRUPTOR_COUNT__; } SYMBOLS { - __STACKSIZE__ = $800; # 2K stack + __STACKSIZE__: value = $0800, weak = yes; # 2k stack } diff --git a/src/ld65/cfg/bbc.cfg b/src/ld65/cfg/bbc.cfg index e1b2f771f..fa3069e65 100644 --- a/src/ld65/cfg/bbc.cfg +++ b/src/ld65/cfg/bbc.cfg @@ -28,7 +28,7 @@ FEATURES { count = __INTERRUPTOR_COUNT__; } SYMBOLS { - __STACKSIZE__ = $800; # 2K stack + __STACKSIZE__: value = $0800, weak = yes; # 2k stack } diff --git a/src/ld65/cfg/c128.cfg b/src/ld65/cfg/c128.cfg index e659300b3..155288713 100644 --- a/src/ld65/cfg/c128.cfg +++ b/src/ld65/cfg/c128.cfg @@ -29,5 +29,5 @@ FEATURES { count = __INTERRUPTOR_COUNT__; } SYMBOLS { - __STACKSIZE__ = $800; # 2K stack + __STACKSIZE__: value = $0800, weak = yes; # 2k stack } diff --git a/src/ld65/cfg/c16.cfg b/src/ld65/cfg/c16.cfg index 9f77f6a83..0117d34e1 100644 --- a/src/ld65/cfg/c16.cfg +++ b/src/ld65/cfg/c16.cfg @@ -29,5 +29,5 @@ FEATURES { count = __INTERRUPTOR_COUNT__; } SYMBOLS { - __STACKSIZE__ = $800; # 2K stack + __STACKSIZE__: value = $0800, weak = yes; # 2k stack } diff --git a/src/ld65/cfg/c64.cfg b/src/ld65/cfg/c64.cfg index 1e8983ffd..425f2a8bc 100644 --- a/src/ld65/cfg/c64.cfg +++ b/src/ld65/cfg/c64.cfg @@ -29,7 +29,7 @@ FEATURES { count = __INTERRUPTOR_COUNT__; } SYMBOLS { - __STACKSIZE__ = $800; # 2K stack + __STACKSIZE__: value = $0800, weak = yes; # 2k stack } diff --git a/src/ld65/cfg/cbm510.cfg b/src/ld65/cfg/cbm510.cfg index 29a398155..5bbd75540 100644 --- a/src/ld65/cfg/cbm510.cfg +++ b/src/ld65/cfg/cbm510.cfg @@ -38,5 +38,5 @@ FEATURES { count = __INTERRUPTOR_COUNT__; } SYMBOLS { - __STACKSIZE__ = $781; # ~2K stack + __STACKSIZE__: value = $0781, weak = yes; # ~2k stack } diff --git a/src/ld65/cfg/cbm610.cfg b/src/ld65/cfg/cbm610.cfg index 497969e1e..5626452a5 100644 --- a/src/ld65/cfg/cbm610.cfg +++ b/src/ld65/cfg/cbm610.cfg @@ -36,5 +36,5 @@ FEATURES { count = __INTERRUPTOR_COUNT__; } SYMBOLS { - __STACKSIZE__ = $800; # 2K stack + __STACKSIZE__: value = $0800, weak = yes; # 2k stack } diff --git a/src/ld65/cfg/geos.cfg b/src/ld65/cfg/geos.cfg index 53e4e09f6..05673385d 100644 --- a/src/ld65/cfg/geos.cfg +++ b/src/ld65/cfg/geos.cfg @@ -31,5 +31,5 @@ FEATURES { count = __INTERRUPTOR_COUNT__; } SYMBOLS { - __STACKSIZE__ = $400; # 1K stack + __STACKSIZE__: value = $0400, weak = yes; # 1k stack } diff --git a/src/ld65/cfg/lunix.cfg b/src/ld65/cfg/lunix.cfg index 84b721d88..946e405f6 100644 --- a/src/ld65/cfg/lunix.cfg +++ b/src/ld65/cfg/lunix.cfg @@ -36,6 +36,6 @@ FORMATS { import = LUNIXKERNEL; # Kernel entry-points } SYMBOLS { - __HEAPSIZE__ = $2000; # 8k heap [temporary, until LUnix malloc() exists] - __STACKSIZE__ = $0400; # 1k stack (do typical LUnix apps. need 2k?) + __HEAPSIZE__: value = $2000, weak = yes; # 8k heap [temporary, until LUnix malloc() exists] + __STACKSIZE__: value = $0400, weak = yes; # 1k stack (do typical LUnix apps. need 2k?) } diff --git a/src/ld65/cfg/lynx.cfg b/src/ld65/cfg/lynx.cfg index c277528d7..8aee49f2c 100644 --- a/src/ld65/cfg/lynx.cfg +++ b/src/ld65/cfg/lynx.cfg @@ -32,5 +32,5 @@ FEATURES { count = __INTERRUPTOR_COUNT__; } SYMBOLS { - __STACKSIZE__ = $800; # 2K stack + __STACKSIZE__: value = $0800, weak = yes; # 2k stack } diff --git a/src/ld65/cfg/nes.cfg b/src/ld65/cfg/nes.cfg index ebbc32bc7..2e2bb108e 100644 --- a/src/ld65/cfg/nes.cfg +++ b/src/ld65/cfg/nes.cfg @@ -63,5 +63,5 @@ FEATURES { } SYMBOLS { - __STACKSIZE__ = $0300; # 3 pages stack + __STACKSIZE__: value = $0300, weak = yes; # 3 pages stack } diff --git a/src/ld65/cfg/none.cfg b/src/ld65/cfg/none.cfg index 79b3d4f88..7d89bcf6c 100644 --- a/src/ld65/cfg/none.cfg +++ b/src/ld65/cfg/none.cfg @@ -27,5 +27,5 @@ FEATURES { count = __INTERRUPTOR_COUNT__; } SYMBOLS { - __STACKSIZE__ = $800; # 2K stack + __STACKSIZE__: value = $0800, weak = yes; # 2k stack } diff --git a/src/ld65/cfg/pet.cfg b/src/ld65/cfg/pet.cfg index 2c4ab0b4d..5385b3c98 100644 --- a/src/ld65/cfg/pet.cfg +++ b/src/ld65/cfg/pet.cfg @@ -29,6 +29,6 @@ FEATURES { count = __INTERRUPTOR_COUNT__; } SYMBOLS { - __STACKSIZE__ = $800; # 2K stack + __STACKSIZE__: value = $0800, weak = yes; # 2k stack } diff --git a/src/ld65/cfg/plus4.cfg b/src/ld65/cfg/plus4.cfg index 607185e61..6c45a63b1 100644 --- a/src/ld65/cfg/plus4.cfg +++ b/src/ld65/cfg/plus4.cfg @@ -29,5 +29,5 @@ FEATURES { count = __INTERRUPTOR_COUNT__; } SYMBOLS { - __STACKSIZE__ = $800; # 2K stack + __STACKSIZE__: value = $0800, weak = yes; # 2k stack } diff --git a/src/ld65/cfg/vic20-32k.cfg b/src/ld65/cfg/vic20-32k.cfg index 1b164fc4b..1ff9fc0b1 100644 --- a/src/ld65/cfg/vic20-32k.cfg +++ b/src/ld65/cfg/vic20-32k.cfg @@ -30,5 +30,5 @@ FEATURES { count = __INTERRUPTOR_COUNT__; } SYMBOLS { - __STACKSIZE__ = $400; # 1K stack + __STACKSIZE__: value = $0400, weak = yes; # 1k stack } diff --git a/src/ld65/cfg/vic20.cfg b/src/ld65/cfg/vic20.cfg index 1afac90cd..11686f124 100644 --- a/src/ld65/cfg/vic20.cfg +++ b/src/ld65/cfg/vic20.cfg @@ -29,7 +29,8 @@ FEATURES { count = __INTERRUPTOR_COUNT__; } SYMBOLS { - __STACKSIZE__ = $400; # 1K stack + __STACKSIZE__: value = $0400, weak = yes; # 1k stack + } -- 2.39.5