Re: [cc65] Problem with code compiled as overlay.

From: Marc 'BlackJack' Rintsch <marc1rintsch.de>
Date: 2012-01-22 02:40:41
Hi Groepaz,

> On Saturday 21 January 2012, Ullrich von Bassewitz wrote:
> > the compiler behaves as follows:
> >   1. Depending on the compiler flag --writable-strings, strings
> >   will either go into the DATA or the RODATA segment.
> 
> shouldnt that depend on wether they are declared as const or not?

IIRC the type of the literal is always char* but changing its content is 
undefined behaviour.  You can not declare the type of the literal 
itself.

Ciao,
	Marc 'BlackJack' Rintsch
-- 
Axiomkraft - Nein Danke!

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Jan 22 02:56:50 2012

This archive was generated by hypermail 2.1.8 : 2012-01-22 02:56:52 CET