Skip to main content
st3
Associate III
July 9, 2008
Question

Raisonance: Small, lightwieght vprintf?

  • July 9, 2008
  • 3 replies
  • 809 views
Posted on July 09, 2008 at 06:17

Raisonance: Small, lightwieght vprintf?

    This topic has been closed for replies.

    3 replies

    st3
    st3Author
    Associate III
    May 17, 2011
    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!

    st3
    st3Author
    Associate III
    May 17, 2011
    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

    francis
    Visitor II
    May 17, 2011
    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.