[uClinux-dev] Question regarding ucLinux update for ucGardener/simm (fwd)

David McCullough davidm at snapgear.com
Thu Nov 29 05:39:18 EST 2001


Jivin Per Winkvist lays it down ...
[...]
> > > Okay, I don't have to do/specify anything else when building uC-libc to
> > > get floats going ? I read somewhere that I had to pass -DFLOATS too.
> > 
> > 
> > You can do that,  but then every application gets the floating point
> > version of printf.
> > 
> > By using -lm,  only the apps that really need FP pay the price of the extra
> > code bloat.
> > 
> 
> You are talking about when I compile *my* apps, I should use the args you
> specified above. Not when compiling uC-libc itself right ?


Yes,  any apps you need floating point printf support should add the -lm.


> > With uClibc, you only get float support if you turn it on in the Config.
> > For the compiler builds this is turned on otherwise C++ gets upset.
> > 
> 
> Okay. It seems I couldn't use uClibc since the kernel oopsed during boot
> then :(

It's actually the app that is failing,  unfortunately that app is init
and the kernel doesn't like init dying ;-)

Cheers,
Davidm

-- 
David McCullough:    Ph: +61 7 3435 2815  http://www.SnapGear.com
davidm at snapgear.com  Fx: +61 7 3891 3630  825 Stanley St., W'gabba QLD 4102, Oz
This message resent by the uclinux-dev at uclinux.org list server http://www.uClinux.org/



More information about the uClinux-dev mailing list