OCCRA
Go to Post You know you're addicted to FIRST when to you: 4's company, 5's a crowd, and 6 is someone off-sides. - Tetraman [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Events   CD-Media   CD-Spy   FRC-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 01-11-2007, 10:56 AM
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 694
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
How much memory is there really?

Hi

I just started trying some algorithms for our arm, and ran into some memory problems. I want a big lookup array.

The linker barfed when I tried to declare an 800 BYTE array. So I started poking around in the MAP file.

It seemed that there was a lot of code space to spare (I was only utilizing 12%), so I tried declaring the array as "rom" to see if I could use code space for my lookup table (since it will never change).

Woo-Hoo. I can seem to define SCADS of space there: eg:

rom BYTE Omega[20000][2] ;

The map file verifies that this allocation is OK and ending up in the code space... so my question is:

Does this memory really exist in the RC?
In other words will the linker protect me from over declaring space?

I want to be sure that I'm not just being fooled by the compiler/linker.

Any experiences with large const data in the code memory?
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor (2011 CMP Eng. Inspiration, 2010 Chesapeake Chairmans Award, 2009 Pittsburgh EI Award, 2008 Buckeye EI Award, 2006 Chesapeake Alliance Winner)
FTC2818 Coach (2011 CMP Divisional Finalist, 2011 MD Winning Alliance, 2010 MD & OH Winning Alliance Captain, 2009 MD Inspire Award and Championship Finalist).
FTC4240 Mentor (2011 CMP Divisional Finalist Captain, 2011 MD Winning Alliance Captain).
FLL Team NeXTGEN Mentor (2011 CMP 3rd place Strategy & Innovation, US Open 09, Champions Award: '11 MD, 09 PIT, 08 & 07 MD)

 


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
A robotic challenge that's really out there Richard Wallace General Forum 3 09-19-2006 07:26 PM
How much does Israel really cost the US tax payer?? Matt Attallah Chit-Chat 9 07-23-2006 12:18 AM
Is there really inspiration in teams? Philip W. General Forum 22 08-22-2005 10:53 AM
Do teachers really know that there talking about?!? Erodge Chit-Chat 17 10-18-2002 11:41 PM
how much is too much on the DRILL MOTORS? archiver 2001 11 06-23-2002 10:53 PM


All times are GMT -5. The time now is 03:59 AM.

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


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