[uClinux-dev] Question regarding ucLinux update for ucGardener/simm (fwd)
nd96pwt at adeptus.student.hig.se
Thu Nov 29 04:49:20 EST 2001
On Thu, 29 Nov 2001, David McCullough wrote:
> Jivin Per Winkvist lays it down ...
> > > No, the tree doesn't get a lot of uClibc use on the m68k processors,
> > > the "LIBC:PRINTF" error you see is because uC-libc doesn't have floating
> > > point compiled in. If you want to use floating point, link in -lm
> > > something like:
> > >
> > > m68k-elf-gcc -m68000 -Wl,-elf2flt -o c c.c -lm -lc
> > >
> > 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 ?
> 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
This message resent by the uclinux-dev at uclinux.org list server http://www.uClinux.org/
More information about the uClinux-dev