mirror of
https://github.com/cc65/cc65.git
synced 2024-09-27 04:54:54 +00:00
Optimizing the stack size
This commit is contained in:
parent
2fde8d35c2
commit
98e2b79ef4
@ -1,7 +1,7 @@
|
|||||||
SYMBOLS {
|
SYMBOLS {
|
||||||
__LOADADDR__: type = import;
|
__LOADADDR__: type = import;
|
||||||
__EXEHDR__: type = import;
|
__EXEHDR__: type = import;
|
||||||
__STACKSIZE__: type = weak, value = $0800; # 2k stack
|
__STACKSIZE__: type = weak, value = $0400; # 1k stack
|
||||||
}
|
}
|
||||||
MEMORY {
|
MEMORY {
|
||||||
ZP: file = "", define = yes, start = $0002, size = $001A;
|
ZP: file = "", define = yes, start = $0002, size = $001A;
|
||||||
|
@ -3,7 +3,7 @@ SYMBOLS {
|
|||||||
}
|
}
|
||||||
MEMORY {
|
MEMORY {
|
||||||
ZP: file = "", define = yes, start = $0020, size = $00E0;
|
ZP: file = "", define = yes, start = $0020, size = $00E0;
|
||||||
RAM: file = "", define = yes, start = $01FA, size = $0206;
|
RAM: file = "", define = yes, start = $01FA, size = $0206 - __STACKSIZE__;
|
||||||
ROM: file = %O, define = yes, start = $B000, size = $1000, fill = yes, fillval = $FF;
|
ROM: file = %O, define = yes, start = $B000, size = $1000, fill = yes, fillval = $FF;
|
||||||
}
|
}
|
||||||
SEGMENTS {
|
SEGMENTS {
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
SYMBOLS {
|
SYMBOLS {
|
||||||
__LOADADDR__: type = import;
|
__LOADADDR__: type = import;
|
||||||
__EXEHDR__: type = import;
|
__EXEHDR__: type = import;
|
||||||
__STACKSIZE__: type = weak, value = $0400; # 1k stack
|
__STACKSIZE__: type = weak, value = $0800; # 2k stack
|
||||||
}
|
}
|
||||||
MEMORY {
|
MEMORY {
|
||||||
ZP: file = "", define = yes, start = $0002, size = $001A;
|
ZP: file = "", define = yes, start = $0002, size = $001A;
|
||||||
|
Loading…
Reference in New Issue
Block a user