|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Large Lookup Tables
I have a few look up tables I'm trying to define, and am running into problems with the C18 Linker.
The error I am getting is that the section I am loading these tables into is not big enough =/. Has anyone else used linker directives to get their large lookup tables to reside in a larger portion of memory? The table I am declaring is similar to this: static const unsigned char mytable[256] = { [mydata] }; From what I've read so far, I need a #pragma linker directive to get this thing to go into a nice big chunk of program ROM. Thanks in advance for the help! -Shawn... |
|
#2
|
||||
|
||||
|
Re: Large Lookup Tables
try using the "rom" keyword in the variable definition - this allows you to place constant data in the PIC's rom, which is 32k - easily enough to store a very large lookup table or two.
i.e. Code:
const rom unsigned char mytable[256] = {
[mydata]
};
|
|
#3
|
||||
|
||||
|
Re: Large Lookup Tables
Thanks a bundle!
|
|
#4
|
||||
|
||||
|
Re: Large Lookup Tables
thanks delta, I was having the exact same problem!
|
|
#5
|
|||
|
|||
|
Re: Large Lookup Tables
Does this work with an EDU-bot?
|
|
#6
|
||||
|
||||
|
Re: Large Lookup Tables
it should, unless for some reason they neglected to include any rom....
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Who needs large Aluminum Sprockets? | Joe Johnson | Kit & Additional Hardware | 3 | 30-01-2004 12:11 |
| Picture size reduction in large quantity | sanddrag | Computer Graphics | 8 | 04-06-2003 09:18 |
| # of people on team how small or large | rcubes85 | General Forum | 5 | 18-02-2003 01:35 |
| Sensor use on Papst Large Fan | archiver | 2001 | 6 | 23-06-2002 23:14 |
| Size Is Large | archiver | 2000 | 15 | 23-06-2002 22:47 |