PowerPC: *printf in non-float-tasks
Sergei Organov
osv at javad.ru
Fri Mar 28 08:59:21 UTC 2003
Joel Sherrill <joel.sherrill at oarcorp.com> writes:
> Thomas Doerfler wrote:
>
> >Hello,
> >
[...]
> > I am a bit confused, this would mean that in a standard environment I can't
> > perform *printf call on a MPC8260 from non-float tasks, or I have to tweak
> > the linker to always use non-float libraries.
>
> >
> >Any hints what would be the "clean" way to deal with this?
> >
>
> Is there an alternate "integer only" version of this with a name line
> "sniprintf"?
>
> newlib has those for some printf variants.
Joel,
AFAIR, there was a patch for newlib's vfprintf to don't use floating point
when no floating-point arguments are passed. Hasn't it been incorporated into
the newlib sources? If not then the OP may wish to apply the patch to his
newlib.
--
Sergei.
More information about the users
mailing list