2008-07-08 09:17 PM
Raisonance: Small, lightwieght vprintf?
2011-05-17 03:38 AM
Cross-posted from
http://www.raisonance.com/Forum/punbb/viewtopic.php?pid=8544#p8544
:Quote:
Raisonance provides the ''small printf'' and ''small no-float printf'' options, giving vastly reduced code sizes compared to the standard ''full'' printf; see:
http://www.raisonance.com/Forum/punbb/viewtopic.php?pid=8537#p8537
But is it possible to get a corresponding ''small no-float'' version of vprintf ? Even with the ''small printf'' and ''small no-float printf'' options selected, using vprintf seems to bloat the code size by about 30K...! :o2011-05-17 03:38 AM
Sorry, duplicate post!
The forum gave an error (''tcp_error'') the first time, but it evidently did actually make the post! The forum seems to be having a bad day today it's been really slow all morning, sometimes failing to respond at all!2011-05-17 03:38 AM
I just tried to compile the following program:
#include ''stdio.h''long unsigned counter = 0;
int main ( ) {
while ( 1 ) {
printf (''\nHello World %d'', counter++);
}
}
I find the following total code sizes: Small printf: 15572 bytes Small printf without floating point numbers: 5620 bytes.