Yes, I do know how this works on PIC *18* ! And C18 doesn't work against PIC16, AFAIK. Jan-Erik. Brendan Gillatt wrote 2012-07-24 21:39: > Hi, > > IIRC (and it's been a while since I've done this) you set up a new > section in the linker script as large as you would like. You then use > a pragma directive in the C code to put your large array into that new > huge linker section. C18 will handle the rest. > > Regards, > Brendan > > On 24 July 2012 19:17, Jan-Erik Soderholm = wrote: >> Hi. >> >> I'm loooking at starting up my first 16F1xxx project. >> It will be the 16F1938 (on the "PICkit 28-pin demo board"). >> >> Now, these PICs has something called "linear memory" where >> GPR from the (up to) 32 banks are combined into one linear >> area without holes or jumps. Fine so far. But how do I "use" >> this area? I know of the usual UDATA and UDATA_SHR but I >> expected something like UDATA_LIN to specificaly allocate >> memory from that area. >> >> Normal UDATA allocation will not cross banks, right? >> >> Maybe using UDATA together with a hardcoded adress in the >> linear area ? But that defeets the automatic allocation. >> >> Anyone who has used this memory area for (e.g.) buffers >> larger then one single bank? >> >> Jan-Erik. >> >> -- >> http://www.piclist.com PIC/SX FAQ & list archive >> View/change your membership options at >> http://mailman.mit.edu/mailman/listinfo/piclist > > > --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .