Kalpesh Pandit

Use of Paged Memory in code - S12 to S12X

Discussion created by Kalpesh Pandit on Feb 28, 2008
Latest reply on Feb 29, 2008 by Kalpesh Pandit
I m porting my existing code from S12 to S12X and stuck up with RAM problem as default RAM is 12 KB instead of 14 KB
 
While using different segments in code while defining different varibles what is the process that should be follwed?
Likewise if I m declaring 5 variables and of type int and i want it in RAM page .
I ll make the changes in prm file and the in variable.c file what should be the format?????
 
Only at the start of variables like
#pragma DAT_SEG __RPAGE SEG XXXX
int a;
int b;
int c;
int d;
int e;
 
or at the start and end of the variables so that the variables after it can be assigned to some other block
#pragma DAT_SEG __RPAGE SEG XXXX
int a;
int b;
int c;
int d;
int e;
#pragma DAT_SEG __RPAGE SEG XXXX
and if this is the right way of doing then both the starting and ending #pragma should be same or different or any one of them has to be default??????
 
 
Added p/n to subject.


Message Edited by NLFSJ on 2008-02-29 09:19 AM

Outcomes