On Sunday 22 January 2012, you wrote: > 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. eh, so something like char *foo = "abc"; foo[1] = 'B'; is undefined? -- http://www.hitmen-console.org http://magicdisk.untergrund.net http://www.pokefinder.org http://ftp.pokefinder.org Das Geld zieht nur den Eigennutz an und verführt stets unwiderstehlich zum Missbrauch. <Albert Einstein> ---------------------------------------------------------------------- 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 03:07:26 2012
This archive was generated by hypermail 2.1.8 : 2012-01-22 03:07:30 CET