Has anyone tried to use pointer declaration with const prefix in C. Normally any declaration with const prefix goes to ROM or const segment but when I declare a pointer array with const prefix it goes to data segment.
const unsigned char * MyPtr[]={}; I want MyPtr to be stored in ROM I have tried this with both Metrowerks and Cosmic compliers Thanks in advance, Regards, praveenG
It really works for Metrowerks. Could you suggest some method for Cosmic compiler also. Does anyone knows how to do the same for cosmic compiler???? Thanks again Regards, PraveenG
I recently found out that Metrowerks has one technical note on this topic
Refer TN102:Contant pointer and pointer to constant (Search TN102 on www.metrowerks.com) Regards, Parveen[ This message was edited by: praveenG on 22-12-2003 10:07 ]