Re: [cc65] String Literal Segment in C code

From: Agent Friday <64subnet1gmail.com>
Date: 2010-11-28 21:20:07
On Sun, Nov 28, 2010 at 10:08 AM,  <Maspethrose7@aol.com> 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.

// Agent Friday
----------------------------------------------------------------------
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 Nov 28 21:20:13 2010

This archive was generated by hypermail 2.1.8 : 2010-11-28 21:20:16 CET