You have to create a big data section in the linker script and put it in there. http://www.hobbytronics.co.uk/c18-large-data-arrays Tamas On 16 July 2013 05:12, Neil wrote: > So no one has any info or thoughts on this? Hmmm. > > > > > Quoting Neil : > > > Hi all, > > > > As I get back to learning C18, I'm wondering what potential pitfalls > > I'll have with tables. For starters, I've setup a 256-entry table > > with... > > > > unsigned char rom SomeTable[256] =3D {1,2,3,4,5,6, ... }; > > > > Does this need to be placed anywhere special (start of block, page, > > etc), or does the C compiler take care of that? > > > > Now if I go above 256 entries, what do I need to do? What about if I > > use ints instead of chars? That would take the table above 256 bytes, > > so what's the correct way to handle that? > > > > If there's some doc that addresses this, do tell. > > > > Cheers, > > -Neil. > > > > > > -- > > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > > View/change your membership options at > > http://mailman.mit.edu/mailman/listinfo/piclist > > > > > > -- > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > --=20 int main() { char *a,*s,*q; printf(s=3D"int main() { char *a,*s,*q; printf(s=3D%s%s%s, q=3D%s%s%s%s,s,q,q,a=3D%s%s%s%s,q,q,q,a,a,q); }", q=3D"\"",s,q,q,a=3D"\\",q,q,q,a,a,q); } --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .