Go to Post "As president, I believe that robotics can inspire young people to pursue science and engineering. And I also want to keep an eye on those robots in case they try anything." — Barack Obama - Ted Weisse [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
CD-Media   CD-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
  #6   Spotlight this post!  
Unread 11-09-2006, 17:08
thegathering's Avatar
thegathering thegathering is offline
Angry Troll Lurking in the MUD
AKA: Ben
FRC #1885 (Robocats)
Team Role: Programmer
 
Join Date: Jul 2006
Rookie Year: 2006
Location: Look around you. What do you see?
Posts: 333
thegathering is a splendid one to beholdthegathering is a splendid one to beholdthegathering is a splendid one to beholdthegathering is a splendid one to beholdthegathering is a splendid one to beholdthegathering is a splendid one to behold
Send a message via AIM to thegathering
Re: Arrays in Vex Programming Kit EasyC?

Quote:
Originally Posted by sedim
Hi all,
I have tried defining:

int example_array[4]; //Works!
//and
int example_array[55]; //Works!
//but!!!!!!!!
int example_array[56];// Or greater does not work!!!!!!!!

//I get a complier error
"C:\vex\Guidance\Main.c:12:Error [1300] stack frame too large

Any ideas??
Arrays are limited by the amount of memory that can be allocated to them. 1300 blocks of memory for a single array is an extremely large amount, even more so for that little vex bot.

I would suggest if you absolutely have to use an array, you make parallel arrays, perhaps several arrays of 10 or even two dimensional arrays (an array holding references to multiple arrays) to break up the locations that the array can be stored.

If that does not work, then you may just not have enough memory to store large arrays. If that is the case, then you may be out of luck and will have to work around it or trim down your variable usage to free space. :\

Hope that helps somewhat.
__________________

*2006 Champion Rookie All Star Award.
*2 x 2006 Regional Rookie All Star Awards.

Last edited by thegathering : 11-09-2006 at 17:12.
Reply With Quote
 


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
vex programming kit Alex Burman FIRST Tech Challenge 1 30-03-2006 18:30
Pre-Load Arrays in EasyC, Possible? Chris_Elston Programming 6 22-02-2006 10:25
EasyC 2.0 for VEX Robotics Kit jeffmorris Programming 7 26-01-2006 10:21
Vex programming kit finally available?? rswsmay General Forum 20 27-09-2005 22:08
White Paper Discuss: VEX / intelitek easyC programming document dez250 Extra Discussion 3 15-09-2005 15:20


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

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