Log in

View Full Version : Use of printf in WPILib


koenig3456
03-03-2006, 11:15
I am trying to use WPILib on a 2005 Robot Controller. Since it only has 32k of memory, code size is very important. It looks like the CMU camera code uses the printf function and the printf function uses about 3k of memory. Could the code be changed to use the itoa function instead?

BradAMiller
03-03-2006, 21:17
I am trying to use WPILib on a 2005 Robot Controller. Since it only has 32k of memory, code size is very important. It looks like the CMU camera code uses the printf function and the printf function uses about 3k of memory. Could the code be changed to use the itoa function instead?
That's a good idea.

Is this something that you need quickly (he said sitting in a hotel room in Manchester at the BAE Regional).

koenig3456
06-03-2006, 07:21
I can wait. Its more of a wish than a need.