Re: [cc65] Changing default segment for string literals in cc65?

From: Payton Byrd <plbyrd1gmail.com>
Date: 2012-01-27 18:00:32
Ooh, ooh, I can answer this one!

If your string literals are in a C header file, then you use the #pragma
rodata-name("segment") command.

This will force all constants declared in that header file to compile to
the specified segment.

On Fri, Jan 27, 2012 at 10:32 AM, Joseph Rose <rose.joseph12@yahoo.com>wrote:

> In cc65, how do I tell the compiler to put specific strings in a module in
> a specific memory segment without affecting other strings?
> --------------
> Joseph Rose, a.k.a. Harry Potter
> Working magic in the computer community
>



-- 
Payton Byrd
<http://www.paytonbyrd.com>
<http://it.toolbox.com/blogs/paytonbyrd>

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Jan 27 18:01:04 2012

This archive was generated by hypermail 2.1.8 : 2012-01-27 18:01:06 CET