Go to Post Mentors are here to guide and explain not to decide and do. - Fe_Will [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 29-01-2004, 23:51
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
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   Spotlight this post!  
Unread 29-01-2004, 23:56
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
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]

};
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
  #3   Spotlight this post!  
Unread 30-01-2004, 00:27
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: Large Lookup Tables

Thanks a bundle!
  #4   Spotlight this post!  
Unread 31-01-2004, 01:10
Kevin Karan's Avatar
Kevin Karan Kevin Karan is offline
Linux Guy
AKA: maxdamage
None #0174 (Arctic Warriors)
Team Role: Alumni
 
Join Date: Jan 2003
Location: Liverpool, NY
Posts: 141
Kevin Karan will become famous soon enoughKevin Karan will become famous soon enough
Send a message via AIM to Kevin Karan
Re: Large Lookup Tables

thanks delta, I was having the exact same problem!
__________________
It isnt ALWAYS the programmers falt!
2004: Buckeye team website award
2002: Rutgers semi-finalists
2001: National semi-finalists
2001: Rutgers semi-finalists
1998: Manchester Rookie All-Star Award
  #5   Spotlight this post!  
Unread 16-02-2004, 20:16
Zee Zee is offline
Registered User
no team
 
Join Date: Jan 2004
Location: USA
Posts: 8
Zee is an unknown quantity at this point
Re: Large Lookup Tables

Does this work with an EDU-bot?
  #6   Spotlight this post!  
Unread 16-02-2004, 21:30
deltacoder1020's Avatar
deltacoder1020 deltacoder1020 is offline
Computer Guy
AKA: Dav
#1020 (The Indiana Prank Monkeys)
Team Role: Programmer
 
Join Date: Jan 2004
Location: Muncie, Indiana
Posts: 340
deltacoder1020 has a spectacular aura aboutdeltacoder1020 has a spectacular aura about
Send a message via AIM to deltacoder1020
Re: Large Lookup Tables

it should, unless for some reason they neglected to include any rom....
__________________
Team 1020, the Indiana Prank Monkeys (www.team1020.org)
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 00:01.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi