Re: [rtl] FW: sprintf for floating point numbers in rt module
On Fri, Aug 11, 2000 at 11:31:53AM -0700, David Schleef wrote: > > If you send me a copy, I'll put it into CVS so people can work > on it. I'll also spend a little bit of time and make sure that > it compiles with different distributions/kernels/RTs. > > This (libc functions for rt modules) is something that needs to > happen, and you seem to have the best starting point. > Hi David, I'll send you the tarball in the next mail as attachment to avoid wasting rtl mail archives disk space. I've never hesitated to provide my knowledge/code to "on-line community." What I've hesitated was to provide an obviously poor quality, practically no added value product. Having read of famous "The Bazaar and the Cathedral" I should know that even a rather poor product may be a starting point for a good product. Well, the first problem was reported by Janet Estabridis, who could not compile the sources. Obviously, the problem is she has an earlier version gcc and/or glibc and she is missing some include files not included in the tarball. Good luck, pa -- .. Pavel Andris | tel: +421 7 5941 2167 Institute of Control Theory and Robotics | fax: +421 7 5477 6045 Slovak Academy of Sciences | Dubravska cesta 9 | e-mail: [EMAIL PROTECTED] SK - 842 37 Bratislava | Slovakia | .. -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] --- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
Re: [rtl] FW: sprintf for floating point numbers in rt module
On Fri, Aug 11, 2000 at 02:39:08PM +0200, Pavel Andris wrote: > > Hi Janet and all, > > my quick and dirty packet is nothing but a collection of about 250 > sources + includes from glibc. Only i586 architecture is covered. The > sources were collected to cover sprintf() + sscanf() needs of my RT > threads. I do lot of floating point operations and it is essential for > my application. > > Actually the glibc sources were (almost) not modified and I declare I > don't understand them. I wrote only a simple Makefile to get a lib > that is partially linked (ld -r) with my RT modules. > > The lib contains e.g. unmodified malloc and friends that crash a > computer very reliably when called from a RT thread, as > expected. That's why I gave up publishing the lib. In spite of this > sprintf and sscanf work fine. Anyway I should investigate if they call > any dangereous function. > > I provided the lib to 2 or 3 people who asked me for a tarball but I > received no feedback from them. > > Some time later I realized that the same result could be possibly > reached by linking with standard libc (ld with right options), but I'm > just too lazy to try it. > > If you want the tarball in spite of everything mentioned above, drop > me a line, I'll upgrade README and send it to you. If you send me a copy, I'll put it into CVS so people can work on it. I'll also spend a little bit of time and make sure that it compiles with different distributions/kernels/RTs. This (libc functions for rt modules) is something that needs to happen, and you seem to have the best starting point. dave... -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] --- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
RE: [rtl] FW: sprintf for floating point numbers in rt module
Thanks, Pavel I got some "No such file or directories" when I did the make. bits/stdio_lim.h /bits/mathinline.h bits/string.h bits/string2.h Did you forget 'um ? Thanks - Also, has anyone done a partial link with the libraries as you suggest Pavel?? ANYONE ?? Janet Estabridis Electrical Engineer NAWC Code 473E00D Building 31440 Room 1017 China Lake, CA 93555 [EMAIL PROTECTED] (760) 939-2896 FAX (760) 939 -3075 > -Original Message- > From: Pavel Andris [SMTP:[EMAIL PROTECTED]] > Sent: Friday, August 11, 2000 5:39 AM > To: Estabridis, Janet P > Cc: [EMAIL PROTECTED] > Subject: Re: [rtl] FW: sprintf for floating point numbers in rt > module > > On Thu, Aug 10, 2000 at 02:42:49PM -0700, Estabridis, Janet P wrote: > > > > > > > -Original Message- > > > From: Horacio and Janet Estabridis > [SMTP:[EMAIL PROTECTED]] > > > Sent: Thursday, August 10, 2000 1:59 PM > > > To: 'Janet Estabridis @ work' > > > Subject: sprintf for floating point numbers in rt module > > > > > > Hi, > > > > > > I'm using RTLV0.9J with kernel 2.0.36 if that matters. > > > > > > I've search the archives and found that sprintf doesn't work with > floating > > > > > > point numbers in a real-time modules, but that Pavel Andris had done > > > something "quick and dirty" and had agreed with Phil Wilshire to have > it > > > available. So, I looked and can't find it. Where can I get it and > > > instructions for using it? > > > > > Hi Janet and all, > > my quick and dirty packet is nothing but a collection of about 250 > sources + includes from glibc. Only i586 architecture is covered. The > sources were collected to cover sprintf() + sscanf() needs of my RT > threads. I do lot of floating point operations and it is essential for > my application. > > Actually the glibc sources were (almost) not modified and I declare I > don't understand them. I wrote only a simple Makefile to get a lib > that is partially linked (ld -r) with my RT modules. > > The lib contains e.g. unmodified malloc and friends that crash a > computer very reliably when called from a RT thread, as > expected. That's why I gave up publishing the lib. In spite of this > sprintf and sscanf work fine. Anyway I should investigate if they call > any dangereous function. > > I provided the lib to 2 or 3 people who asked me for a tarball but I > received no feedback from them. > > Some time later I realized that the same result could be possibly > reached by linking with standard libc (ld with right options), but I'm > just too lazy to try it. > > If you want the tarball in spite of everything mentioned above, drop > me a line, I'll upgrade README and send it to you. > > Regards, > > pa > -- > .. > Pavel Andris | tel: +421 7 5941 2167 > Institute of Control Theory and Robotics | fax: +421 7 5477 6045 > Slovak Academy of Sciences | > Dubravska cesta 9 | e-mail: [EMAIL PROTECTED] > SK - 842 37 Bratislava | > Slovakia | > .. > -- [rtl] --- > To unsubscribe: > echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR > echo "unsubscribe rtl " | mail [EMAIL PROTECTED] > --- > For more information on Real-Time Linux see: > http://www.rtlinux.org/rtlinux/ -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] --- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
RE: [rtl] FW: sprintf for floating point numbers in rt module
Pavel, Yes, I'd like it. All I need is the sprintf command -- It preps my floating point numbers to write them out to a Video Insertion Generator card. So, if you say that I'm safe using the sprintf I'd like it. Then I don't have to figure out the "ld -r" stuff either (I'm not so good at that stuff and am always in a time crunch). Thanks - Janet > -Original Message- > From: Pavel Andris [SMTP:[EMAIL PROTECTED]] > Sent: Friday, August 11, 2000 5:39 AM > To: Estabridis, Janet P > Cc: [EMAIL PROTECTED] > Subject: Re: [rtl] FW: sprintf for floating point numbers in rt > module > > On Thu, Aug 10, 2000 at 02:42:49PM -0700, Estabridis, Janet P wrote: > > > > > > > -Original Message- > > > From: Horacio and Janet Estabridis > [SMTP:[EMAIL PROTECTED]] > > > Sent: Thursday, August 10, 2000 1:59 PM > > > To: 'Janet Estabridis @ work' > > > Subject: sprintf for floating point numbers in rt module > > > > > > Hi, > > > > > > I'm using RTLV0.9J with kernel 2.0.36 if that matters. > > > > > > I've search the archives and found that sprintf doesn't work with > floating > > > > > > point numbers in a real-time modules, but that Pavel Andris had done > > > something "quick and dirty" and had agreed with Phil Wilshire to have > it > > > available. So, I looked and can't find it. Where can I get it and > > > instructions for using it? > > > > > Hi Janet and all, > > my quick and dirty packet is nothing but a collection of about 250 > sources + includes from glibc. Only i586 architecture is covered. The > sources were collected to cover sprintf() + sscanf() needs of my RT > threads. I do lot of floating point operations and it is essential for > my application. > > Actually the glibc sources were (almost) not modified and I declare I > don't understand them. I wrote only a simple Makefile to get a lib > that is partially linked (ld -r) with my RT modules. > > The lib contains e.g. unmodified malloc and friends that crash a > computer very reliably when called from a RT thread, as > expected. That's why I gave up publishing the lib. In spite of this > sprintf and sscanf work fine. Anyway I should investigate if they call > any dangereous function. > > I provided the lib to 2 or 3 people who asked me for a tarball but I > received no feedback from them. > > Some time later I realized that the same result could be possibly > reached by linking with standard libc (ld with right options), but I'm > just too lazy to try it. > > If you want the tarball in spite of everything mentioned above, drop > me a line, I'll upgrade README and send it to you. > > Regards, > > pa > -- > .. > Pavel Andris | tel: +421 7 5941 2167 > Institute of Control Theory and Robotics | fax: +421 7 5477 6045 > Slovak Academy of Sciences | > Dubravska cesta 9 | e-mail: [EMAIL PROTECTED] > SK - 842 37 Bratislava | > Slovakia | > .. -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] --- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
Re: [rtl] FW: sprintf for floating point numbers in rt module
On Thu, Aug 10, 2000 at 02:42:49PM -0700, Estabridis, Janet P wrote: > > > > -Original Message- > > From: Horacio and Janet Estabridis [SMTP:[EMAIL PROTECTED]] > > Sent: Thursday, August 10, 2000 1:59 PM > > To: 'Janet Estabridis @ work' > > Subject:sprintf for floating point numbers in rt module > > > > Hi, > > > > I'm using RTLV0.9J with kernel 2.0.36 if that matters. > > > > I've search the archives and found that sprintf doesn't work with floating > > > > point numbers in a real-time modules, but that Pavel Andris had done > > something "quick and dirty" and had agreed with Phil Wilshire to have it > > available. So, I looked and can't find it. Where can I get it and > > instructions for using it? > > Hi Janet and all, my quick and dirty packet is nothing but a collection of about 250 sources + includes from glibc. Only i586 architecture is covered. The sources were collected to cover sprintf() + sscanf() needs of my RT threads. I do lot of floating point operations and it is essential for my application. Actually the glibc sources were (almost) not modified and I declare I don't understand them. I wrote only a simple Makefile to get a lib that is partially linked (ld -r) with my RT modules. The lib contains e.g. unmodified malloc and friends that crash a computer very reliably when called from a RT thread, as expected. That's why I gave up publishing the lib. In spite of this sprintf and sscanf work fine. Anyway I should investigate if they call any dangereous function. I provided the lib to 2 or 3 people who asked me for a tarball but I received no feedback from them. Some time later I realized that the same result could be possibly reached by linking with standard libc (ld with right options), but I'm just too lazy to try it. If you want the tarball in spite of everything mentioned above, drop me a line, I'll upgrade README and send it to you. Regards, pa -- .. Pavel Andris | tel: +421 7 5941 2167 Institute of Control Theory and Robotics | fax: +421 7 5477 6045 Slovak Academy of Sciences | Dubravska cesta 9 | e-mail: [EMAIL PROTECTED] SK - 842 37 Bratislava | Slovakia | .. -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] --- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/
[rtl] FW: sprintf for floating point numbers in rt module
> -Original Message- > From: Horacio and Janet Estabridis [SMTP:[EMAIL PROTECTED]] > Sent: Thursday, August 10, 2000 1:59 PM > To: 'Janet Estabridis @ work' > Subject: sprintf for floating point numbers in rt module > > Hi, > > I'm using RTLV0.9J with kernel 2.0.36 if that matters. > > I've search the archives and found that sprintf doesn't work with floating > > point numbers in a real-time modules, but that Pavel Andris had done > something "quick and dirty" and had agreed with Phil Wilshire to have it > available. So, I looked and can't find it. Where can I get it and > instructions for using it? > > Thanks in advance --- > > Janet Estabridis > Electrical Engineer > Code 473E00D > China Lake, CA 93555 > 760-9399-2896 -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl " | mail [EMAIL PROTECTED] --- For more information on Real-Time Linux see: http://www.rtlinux.org/rtlinux/