I see what you mean,
just going from:
unsigned long vssPulsesPerMile =14400ul;
to:
#define vssPulsesPerMile 14400ul
chops off 72 bytes! (was expecting 4 bytes)
I'm thinking though that 7000 bytes is just too big a penalty for 64bit math. The data is there, we just need to figure out how to scale it down to 32 bit math for display purposes, like in the mpg and gallons and miles functions.
edit: one thing with int vsspinstate=0; it gets destroyed if it isn't declared out of the scope of the interrupt handler, just remembered. If i declare it method static, it takes up just as much space as in global scope
__________________
WINDMILLS DO NOT WORK THAT WAY!!!
Last edited by dcb; 05-17-2008 at 02:44 AM..
|