From: Nick Craig-W. <nc...@ax...> - 2002-08-22 08:42:02
|
On Wed, Aug 21, 2002 at 10:08:36AM -0700, pa...@pj... wrote: > Just my two cents, even though my project is using its own assembly > optimized printf, which I contributed into the library as printf_fast. > If the smaller feature set of printf_fast is enough for your project, > please give it a try and report any bugs you find. The printf_fast > prints integers (base 10) approximately 50 times faster, due to some > lookup tables, using the 8051's BCD instructions, and hand-optimized > assembly, of course. Mmmm, nice! Unfortunately I need sprintf and vsprintf as well, otherwise the feature set looks good. Perhaps you could consider factoring printf_fast into vsprintf_fast and printf_fast? vprintf.c uses the trick that passing 0 as the buffer pointer into vsprintf means output to stdout. -- Nick Craig-Wood nc...@ax... |