From: groepaz (groepaz_at_gmx.net)
Date: 2002-05-21 14:24:00
Hello Mark, Tuesday, May 21, 2002, 2:12:27 PM, you wrote: KM> Hi, >> char *msg; = "Hello."; >> >> main(int c,char**v) { >> exit(printf("%s\n",msg)); >> } KM> If you put "static" in front of "char *msg" KM> the segment remains as "DATA". Shouldn't this KM> become "RODATA"? nopes, data declared as static must still be changeable (ie its not constant) it cannot live in the rodata section. "const char *msg..." should end up in .rodata for that matter. -- Best regards, groepaz mailto:groepaz_at_gmx.net ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2002-05-21 14:22:26 CEST