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

From: Greg King <greg.king41verizon.net>
Date: 2012-01-04 09:57:55
From: "Johan Kotlinski"; on Tuesday, Jan. 03, 2012; at 05:54 PM -0500
>
> I'm trying to achieve something, but not sure how to go about it.
> The idea is that I want to use all available RAM for a particular
> temporary buffer that should end at $8000. The problem is that I don't
> know how to tell where the buffer should start, i.e., what is the
> highest address used by my CC65 code. From map file, I can see that
> RODATA segment ends at 0x5959. But, how can I "find" this address from
> within my C code?

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!

----------------------------------------------------------------------
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:11:49 2012

This archive was generated by hypermail 2.1.8 : 2012-01-04 12:11:54 CET