Dear all,
my RT application needs functions like strtod, sprintf (for floats and
doubles) and some more standard string and memory manipulation
functions. This made me to start a private project of porting some
glibc-2.1.2 functions for linking with my RT modules. In spite of very
low expectations, my lightweight library seems to work.
As shown in the recent discussion here, there may be some interest in
the project. I'd be very glad to share my experience and code with
other people. Drop me a line if interesting for you. You may also want
to suggest functions to be added to the library. For me, the most
obvious candidate is sscanf my application does not need but it should
not be a problem.
Some details:
The project was started as a low expectation, one purpose, and one
architecture (Pentium) experiment. So everything was done in ugly and
dirty way. The basic steps were:
- downloading glibc-2.1.2 source files
- copying required source and include files into a new directory. Just
to cover one function (strtod) I needed more than 200 source files.
Actually the sources were NOT modified, possibly some minor changes
were made just to prevent gcc from complaining.
- a Makefile was written. I used gcc options as for a RT module.
When the same set of sources was compiled with RT module and "normal"
options the result was:
-rw-r--r-- 1 root root 511594 Mar 27 17:56 libmod.a
-rw-r--r-- 1 root root 3211982 Mar 27 17:56 libn.a
where libn.a is the one compiled with "normal" options. My RT
modules are linked with libmod.a.
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 <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/