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.
