New Lunix config file from Greg King
git-svn-id: svn://svn.cc65.org/cc65/trunk@1761 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -1,12 +1,16 @@
|
|||||||
|
# ld65 Linker-configuration for LUnix, Next Generation.
|
||||||
MEMORY {
|
MEMORY {
|
||||||
COMBINED: start = $0000, size = $FFFF, file = %O;
|
ZP: start = $80, size = $40; # userzp buffer
|
||||||
|
RAM: start = %S, size = $7600;
|
||||||
}
|
}
|
||||||
SEGMENTS {
|
SEGMENTS {
|
||||||
ZEROPAGE: load = COMBINED, type = zp;
|
ZEROPAGE: load = ZP, type = zp, define = yes; # Pseudo-registers
|
||||||
CODE: load = COMBINED, type = wprot;
|
STARTUP: load = RAM, type = wp; # First initiation code
|
||||||
RODATA: load = COMBINED, type = wprot;
|
LOWCODE: load = RAM, type = rw; # Legacy from other platforms
|
||||||
DATA: load = COMBINED, type = rw, define = yes;
|
CODE: load = RAM, type = ro; # Program
|
||||||
BSS: load = COMBINED, type = bss, define = yes;
|
RODATA: load = RAM, type = ro; # Literals, constants
|
||||||
|
DATA: load = RAM, type = rw; # Initiated variables
|
||||||
|
BSS: load = RAM, type = bss, define = yes; # Un-initiated variables
|
||||||
}
|
}
|
||||||
FEATURES {
|
FEATURES {
|
||||||
CONDES: segment = RODATA,
|
CONDES: segment = RODATA,
|
||||||
@@ -22,10 +26,12 @@ FILES {
|
|||||||
%O: format = o65;
|
%O: format = o65;
|
||||||
}
|
}
|
||||||
FORMATS {
|
FORMATS {
|
||||||
o65: os = lunix, type = small,
|
o65: os = lunix, type = small,
|
||||||
import = LUNIXKERNEL,
|
export = main, # Program entry-point
|
||||||
export = _main;
|
# import = LIB6502, # Shared-library entry-points
|
||||||
|
import = LUNIXKERNEL; # Kernel entry-points
|
||||||
}
|
}
|
||||||
SYMBOLS {
|
SYMBOLS {
|
||||||
__STACKSIZE__ = $800; # 2K stack
|
__HEAPSIZE__ = $2000; # 8k heap [temporary, until LUnix malloc() exists]
|
||||||
|
__STACKSIZE__ = $0400; # 1k stack (do typical LUnix apps. need 2k?)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user