View Single Post
  #8   Spotlight this post!  
Unread 05-02-2005, 14:10
Don Reid Don Reid is offline
Registered User
#0997
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Corvallis, Oregon
Posts: 45
Don Reid will become famous soon enough
Re: 32k controller limit

We saw this after trying to combine the Navigation code and the camera code. I noticed that the default project settings turn off a lot of the optimizations the compiler can do, resulting in larger slower code. This may be needed for the simulator or a debugger, but without them the code was 1/2 the size.

I also saw that the largest module was vprintf (~4k). If you get rid of all printf calls, this will go away. You can sill use puts(), itoa(), ltoa() ... which are smaller.

Of course there is no substitute for going through the code and removing anything you don't need. Some of the sample code could be made smaller and faster (but probably less readable) too.
__________________
Don Reid