Sorry, totally forgot about the linker implications. -- Bob Ammerman RAm Systems =20 -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of Bob Ammerman Sent: Tuesday, July 16, 2013 9:14 AM To: 'Microcontroller discussion list - Public.' Subject: RE: [PIC] Tables in C18 Neil, You may not be seeing much on this because tables "just work" in C18. The compiler and linker take care of any alignment issues, as well as dealing with tables larger than 256 bytes. -- Bob Ammerman RAm Systems =20 -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of Neil Sent: Tuesday, July 16, 2013 8:13 AM To: piclist@mit.edu Subject: Re: [PIC] Tables in C18 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=20 > I'll have with tables. For starters, I've setup a 256-entry table=20 > 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,=20 > 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=20 > use ints instead of chars? That would take the table above 256 bytes,=20 > 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=20 > View/change your membership options at=20 > http://mailman.mit.edu/mailman/listinfo/piclist > -- http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/chang= e your membership options at http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/chang= e your membership options at http://mailman.mit.edu/mailman/listinfo/piclist --=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 .