|
Re: reprogram during a competition
Jacob,
At the risk of sounding condescending, I can't believe that anyone is running out of space. If so, take a good hard look at what you are doing.
Programming an embedded system is absolutely nothing like programming a PC.
First rule: Never, never, ever use floating point arithmetic.
Second rule: Never, ever use dynamic allocation of memory.
Third: Avoid pointer manipulations unless you understand what it does in the machine (some dereferencing manipulations are murder).
Look at the assembly code being generated by the compiler. You can see it in the .lst file that is generated when you build your project.
Good Luck,
__________________
Mike Betts
Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013
As easy as 355/113...
|