[cc65] controlling location of literal storage

From: Winslow, Dan D (US SSA) <dan.winslow1baesystems.com>
Date: 2009-03-11 19:14:24
I am trying to locate some data ( char *'s and initialization literals )
all in one file, separate from the main %O file. Defined as follows :

#include <conio.h>

#pragma codeseg(push,"BANK0SEG")
#pragma dataseg(push,"BANK0DAT");
#pragma rodataseg(push,"BANK0ROD");
Char *some1="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
char *some2="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
char *some3="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
char *some4="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
void bank0( void )
{
	gotoxy(0,2);
	cprintf("hello from bank0!");
	bank_call(1,"bank1");
}
#pragma rodataseg(pop)
#pragma dataseg(pop)
#pragma codeseg(pop)

The config file in use maps these segment names to a separate file
"bank0.bnk". My question is about the ability to control the storage
location for the initialization literals above. The actual variables
some1, some2, etc. do appear in the bank0.bnk file, but the literals are
stored in the main file.

Is there a way to force these literals to be in the same output file as
the variables that point to them are?

Dan Winslow

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Mar 11 19:14:35 2009

This archive was generated by hypermail 2.1.8 : 2009-03-11 19:14:38 CET