Replacing or disabling "printf" calls

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Oct 17 12:22:54 UTC 2011


Hello,

On 10/17/2011 02:12 PM, Rafael Morales wrote:
> Hello everyone,
>
> We are working in a space project using RTEMS and we are worried about program
> sizes.
>
> Reviewing the map file of a sample program using MIL-STD-1553B and spacewire
> driver, we have found :
>
> 9460 bytes used by lib_a-vfprinft.o
> 9192 bytes used by lib_a-svfprintf.o
>
>
> Almost 18KB for printing it a lot!

this is due to the floating point support.  Newlib provides iprintf() etc. 
alternatives which lack the floating point support.

>
> We are not using "printf" in main program, but we have found it in the source
> file of MIL-STD-1553B and spacewire driver.
> Those drivers was originally compiled with RTEMS and are linked with the main
> program in any compilation.
>
> Can any one help us to replace or disable that "printf" calls?

You should probably fix the drivers.

-- 
Sebastian Huber, embedded brains GmbH

Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone   : +49 89 18 90 80 79-6
Fax     : +49 89 18 90 80 79-9
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the users mailing list