Go to Post theyre not planning on blowing up the comet... just running straight into it and seeing what happens. :D - Winged Wonder [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 26-01-2006, 20:50
p1r0o2g7 p1r0o2g7 is offline
Registered User
#1027
 
Join Date: Mar 2005
Location: West Springfield, MA
Posts: 3
p1r0o2g7 is an unknown quantity at this point
array problems

Our team decided on using a lookup table to determine our cannons angle to accurately fire it at the target. I put the array into a function, lets say its called Find_Angle() just for reference. When compiled it gave me the error "Stack Frame too Large".

I searched on Google and found that declaring the array as a global variable would fix that problem but now the compiler is tell me...

"Error - section '.idata_tracking.o' can not fit the section. Section '.idata_tracking.o' length=0x00000524"

Anyone know why? I'm baffled.
  #2   Spotlight this post!  
Unread 26-01-2006, 21:52
devicenull devicenull is offline
Robot? We need a robot?
no team
 
Join Date: Sep 2004
Rookie Year: 1234
Location: n/a
Posts: 359
devicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nice
Re: array problems

http://www.chiefdelphi.com/forums/sh...ad.php?t=42714

Or search the forums for "lookup table"
  #3   Spotlight this post!  
Unread 27-01-2006, 15:43
jerry w's Avatar
jerry w jerry w is offline
Free Agent Mentor
no team (Team Krunch)
Team Role: Engineer
 
Join Date: Nov 2003
Rookie Year: 2002
Location: dunedin fl
Posts: 113
jerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud ofjerry w has much to be proud of
Re: array problems

Quote:
Originally Posted by p1r0o2g7
Our team decided on using a lookup table to determine our cannons angle to accurately fire it at the target. I put the array into a function, lets say its called Find_Angle() just for reference. When compiled it gave me the error "Stack Frame too Large".

I searched on Google and found that declaring the array as a global variable would fix that problem but now the compiler is tell me...

"Error - section '.idata_tracking.o' can not fit the section. Section '.idata_tracking.o' length=0x00000524"

Anyone know why? I'm baffled.
you are placing the array into ram memory. since it is in a function, the memory is also assigned to the stack. there are less than 256 stack bytes available.
if you intended the array to be in program memory, use the ROM prefix. if it is to be in ram, use the STATIC prefix.
static, tells the compiler not to store the data into the stack.

jerry w
__________________
Happiest when people tell the truth... However, I am blessed with many friends.
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
Anyone Else Having Problems with Q&A on FIRST? Windwarrior General Forum 6 25-01-2006 10:54
Vanilla ice cream == car problems?? Ken Leung General Forum 16 22-11-2005 11:07
Array problems( i think....) Andrew Blair Programming 10 22-09-2005 19:57
Array Problems: Possible<stdio.h> Alex Wijtowych Programming 7 26-01-2005 04:39
PC problems. . . opnickc IT / Communications 5 12-01-2005 16:53


All times are GMT -5. The time now is 18:10.

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