...but now i get the ONLY error
"Link Error : Func.c: 'getDataAddress' has 16-bit data reference to non-data symbol 'Data'."
where my func.c is
/**********************************/ const SomeStructure Data[];
SomeStructure *getDataAddress(){ return(&Data); }
#pragma pcrelconstdata on const SomeStructure Data[8192]= { 34,45,67,67,6.......all ints.. ....................(no pointer structure members) }; #pragma pcrelconstdata off /**********************************/
the Data[] is actually 49152 Bytes <64k but in the segment info it shows data=0, code=0 ..isnt PC-Relative const data attached in codesize? How do i access 'non-symbol' data?
You need to have the "#pragma pcrelconstdata on" before the declaration of you Data[] array in order to correctly generate this code.
-- Ben Combee, senior DTS engineer, PalmSource, Inc. Read "Combee on Palm OS" at http://palmos.combee.net/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
