|
Re: Need interupts help, and another question...
Quote:
|
Originally Posted by Kevin Karan
My other question is if we can exclude some parts of firsts code, like the printf library since they take up a large chunk of the program flash memory and I want to use that space for other stuff.
Thanks,
Kevin Karan
Team 174 Arctic Warriors Programmer
|
Yea. You can scrap alot more than jsut the printf lib. The first thing we did was gut the default code. I don't remember the exact amount of memory e saved, but we were able to shave off over about 20% of the code. Besides, printf, two other good places that have a lot of room for a diet are userroutines.c and ifi_utilities.c. It is also a good idea to turn on certian compilar optimizations. You would be surprised how much those can save you in some cases. If you don't understand the memory allocation, then it would be a good idea to read up on that, because it will allow you to write better code. The compiler manual is the best resource for that, although i think it kinda sucks.
__________________
1139 Alumni
Last edited by Rickertsen2 : 21-02-2004 at 22:09.
|