Re: [cc65] linker cfg files

Date view Thread view Subject view

From: Groepaz (
Date: 2003-04-22 23:32:42

On Tuesday 22 April 2003 22:12, Ullrich von Bassewitz wrote:
> Overlapping memory areas are completely legal. They can be used for
> overlays, banked code and some other applications.

oh yes, i didnt think of that...ofcoz they are :=) however, the problem i was 
referring to is that you will get a "non linear" output file which cant be 
just loaded into memory as is and executed (the original config in this 
example had a 2 byte "hole" making the data behind the hole all screwed)... 
maybe the linker could issue a warning or something in such a case...its a 
bit hard to diagnose otherwhise (if you arent used to all the linkerscript 
stuff etc)

> Problem is that without --check-stack the compiler will not generate stack
> checks, so your stack may overflow without your program showing problems.

eh :=) well if the stack overflows, the program will almost certainly behave 
strange at best no? :o) (if it doesnt show problems...screw the stack, who 
needs it! :=P)

seriously, i know what you mean,the stack would just silently expand into heap 
area with the common memory layout...but that couldnt happen with the pc 
engine since i have put the stack into a seperate ram block of the pcengine, 
totally unrelated to the ram block that keeps the heap. (which leads to the 
question about configureable stack- and heapplacement again :=P)


To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.

Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-04-22 23:39:08 CEST