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

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2012-01-04 22:38:36
On Wed, Jan 04, 2012 at 10:11:23PM +0100, Johan Kotlinski wrote:
> Ah, so that's how it is supposed to work. I already had the
> expectation that they were addresses, so I declared them as char
> pointers... but when I think of it, declaring as char of course is the
> simplest way to do things from compiler+linker view. Even if a bit
> counter-intuitive :)

You could even declare them as void (a cc65 extension). But declaring the as
chars has the advantage, that taking the address results in a char pointer, so
address calculations use "bytes" even when not casting the pointers to an int.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
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 22:38:52 2012

This archive was generated by hypermail 2.1.8 : 2012-01-04 22:38:55 CET