View Single Post
  #4   Spotlight this post!  
Unread 12-02-2008, 03:47
jgannon's Avatar
jgannon jgannon is offline
I ᐸ3 Robots
AKA: Joey Gannon
no team
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Pittsburgh, PA
Posts: 1,467
jgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond repute
Re: Dynamic Memory Allocation Woes

Quote:
Originally Posted by slavik262 View Post
The point is that I don't want to have a fixed number of my memory blocks
The thing is, you *do* have a fixed amount of memory, because of the limitations of the hardware. This isn't like the 4GB address space you're used to on a PC. I think you're far better off taking a static block of memory that is as big as you'll ever use, and build your data structure in there. It's not like you have to share your memory with other applications. I really can't think of anything that you could feasibly do with dynamic memory on the IFI controller that you couldn't also do with static memory, and it seems like you'd save yourself a huge pain in the process.
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed

Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star

_