Re: problem printing floating point values inside realtime tasks

Der Herr Hofrat <[email protected]> Sun, 20 Feb 2005 20:45:23 +0100 (CET)
Newsgroups gmane.linux.real-time.rtlinux.general
Message-ID <[email protected]>
> Hello,
> 
> I had the same problem here some time ago. Either you do what Herr
> Hofrat stated in his email to convert fp numbers to decimal or you use
> sprintf() and print floating point numbers into a buffer and then output
> this buffer with rtl_printf (=printk) or FIFOs. Then of course you have
> to link against the c (and maybe the gcc library) "-lc -lgcc". Don't
> forget to use "-u sprintf" when running ld to link against the libs
> because the kernel sources offer a sprintf function, too, but you want
> to use the user space one. This method may have a bad influence on other

sounds inherently dangorous to link in libc code - by default libc functions
are non-deterministic (although it might work in some cases...) - so I guess
its convert it or write it to fifo/shm.

hofrat
_______________________________________________
Rtl mailing list
[email protected]
http://www2.fsmlabs.com/mailman/listinfo/rtl