Re: [cc65] String Literal Segment in C code

From: Groepaz <>
Date: 2010-11-28 23:21:09
On Sonntag 28 November 2010, you wrote:
> On Sun, Nov 28, 2010 at 10:08 AM,  <> wrote:
> > Into which segment do string literals in a C program go?  I need this
> > information for a text adventure and a library.  Thank you in advance.
> That would be the "rodata" segment, I believe.  Based on search
> results in the mail list archive, it looks like #pragma rodata-name
> can be used effectively to keep literals together with the overlay
> that uses them.  I assume that you're going for a disk-based string
> table...  I'm not sure how much help cc65 will be for that model,
> but I'm very interested in that solution.

it will go to rodata segment if the string is constant, and to data segment if 
its not.


Choose any two: 1) Enjoy your job. 2) Work within the law. 3) Make lots of 

To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Nov 28 23:19:07 2010

This archive was generated by hypermail 2.1.8 : 2010-11-28 23:19:10 CET