Re: [cc65] ASM to C help a n00b

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2010-05-27 21:51:04
On Thu, May 27, 2010 at 03:31:05PM -0400, Greg King wrote:
> Uz:
>   When I defined
>
> static char *const tile_buffer[] = { ... };
>
> globally, it was put into RODATA, as I expected.
> But, when I defined it locally, it was put into the DATA segment.
> Shouldn't static constant objects go into RODATA when they are local in
> a function, too?

Yes, they should. It's an error that happens with arrays, because the const
qualifier is applied to the array elements, not to the array itself. I've
fixed that. Thanks for the report!

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 Thu May 27 21:51:13 2010

This archive was generated by hypermail 2.1.8 : 2010-05-27 21:51:15 CEST