Re: problem printing floating point values inside realtime tasks
Allan Barredo <[email protected]> Mon, 21 Feb 2005 11:22:57 +0800
| Newsgroups | gmane.linux.real-time.rtlinux.general |
|---|---|
| Message-ID | <[email protected]> |
Thanks a lot for all your replies. On Sun, 20 Feb 2005 20:45:23 +0100 (CET), Der Herr Hofrat <[email protected]> wrote: > > 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