]> git.sur5r.net Git - cc65/blob - src/ld65/cfg/pet.cfg
Made stacksize user-adjustable on the cmdline.
[cc65] / src / ld65 / cfg / pet.cfg
1 MEMORY {
2     ZP:  start = $0055, size = $001A, type = rw, define = yes;
3     RAM: start = $03FF, size = $7BFF, file = %O;
4 }
5 SEGMENTS {
6     STARTUP:  load = RAM, type = ro;
7     LOWCODE:  load = RAM, type = ro,               optional = yes;
8     INIT:     load = RAM, type = ro, define = yes, optional = yes;
9     CODE:     load = RAM, type = ro;
10     RODATA:   load = RAM, type = ro;
11     DATA:     load = RAM, type = rw;
12     ZPSAVE:   load = RAM, type = bss;
13     BSS:      load = RAM, type = bss, define = yes;
14     HEAP:     load = RAM, type = bss, optional = yes; # must sit just below stack
15     ZEROPAGE: load = ZP,  type = zp;
16 }
17 FEATURES {
18     CONDES: segment = INIT,
19             type = constructor,
20             label = __CONSTRUCTOR_TABLE__,
21             count = __CONSTRUCTOR_COUNT__;
22     CONDES: segment = RODATA,
23             type = destructor,
24             label = __DESTRUCTOR_TABLE__,
25             count = __DESTRUCTOR_COUNT__;
26     CONDES: type = interruptor,
27             segment = RODATA,
28             label = __INTERRUPTOR_TABLE__,
29             count = __INTERRUPTOR_COUNT__;
30 }
31 SYMBOLS {
32     __STACKSIZE__: value = $0800, weak = yes; # 2k stack
33 }
34