Re: [cc65] String Literal Segment in C code

From: <Maspethrose71aol.com>
Date: 2010-11-28 23:25:57
 
In a message dated 11/28/2010 5:18:52 P.M. Eastern Standard Time,  
groepaz@gmx.net writes:

On  Sonntag 28 November 2010, you wrote:
> 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.

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

I need the strings to go into an overlay.  When I look into the main  file, 
I find it there, not in the overlay.  When I try to print  the string, I 
get garbage.  I need the text in the overlay.


--  

http://www.hitmen-console.org     http://magicdisk.untergrund.net
http://www.pokefinder.org     http://ftp.pokefinder.org

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

----------------------------------------------------------------------
To  unsubscribe from the list send mail to majordomo@musoftware.de with
the  string "unsubscribe cc65" in the body(!) of the mail.




-------------------
Joseph Rose, a.k.a. Harry Potter
Working  magic in the computer community...or at least striving to!  :(
----------------------------------------------------------------------
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 23:26:25 2010

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