cancel
Showing results for 
Search instead for 
Did you mean: 

Raisonance: Small, lightwieght vprintf?

st3
Associate II
Posted on July 09, 2008 at 06:17

Raisonance: Small, lightwieght vprintf?

3 REPLIES 3
st3
Associate II
Posted on May 17, 2011 at 12:38

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...! :o

st3
Associate II
Posted on May 17, 2011 at 12:38

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!

francis
Associate II
Posted on May 17, 2011 at 12:38

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.