|
Re: Whacky C Complier behavior
Larry,
2 issues here...
You are doing an implicit initialization. Never a good idea in an embedded system.
Make it:
int InitFoo;
for your declaration and then
InitFoo = (100 * 5);
in your initialization routine.
Secondly (IMHO), you really do not want to do floating point... I have posted about this in other threads.
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...
|