Re: [cc65] How to find highest address of my C code?

From: Oliver Schmidt <ol.sc1web.de>
Date: 2012-01-04 12:25:39
Hi,

> What about your BSS segment?  Does your program have one?  Where is it?
> If it's in the usual place, then you must use its end-address instead of
> RODATA's end-address!

One just needs to know a little more about a cc65 program memory
layout if one want's to do things in memory bypassing segments/memory
areas!

I.e. dependin on the actual location the used memeory could easily
collide with the "software"-stack. My experience is that if you know
enough about the way a cc65 program is layouted in memory to do things
right via bypassing ld65 you happen to know enough about ld65 to do it
_actually_using_ ld65. One could i.e. solve the OP scenariovery likely
with a custom segment instead of address calculations inside the
source code.

Just my two cents,
Oliver
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Jan 4 12:25:45 2012

This archive was generated by hypermail 2.1.8 : 2012-01-04 12:25:48 CET