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