On Fre, 19 Nov 1999 Luiz Gustavo Bizarro Mirisola wrote:
>> On Fre, 19 Nov 1999 Jochen wrote:
>> gcc -r tmp.o -o module.o -lgcc
> 1 - I didnt find a "-r" option in gcc manual (from FSF)
> What does "-r" do?
> I know "ld" have a "-r" option. Why can you use it for gcc?
gcc simply passes it to ld :-) IIRC it knows about all GNU ld options.
Check the info docs for "-Xlinker OPTION".
>> or even better
>> gcc -nostdlib -static -r tmp.o -o tmp.o -lgcc
>>
> 2- My module must use math functions sin and cos ( libm ),
> I followed yours instructions and I built a module of 950 Kb:
> Is this size really necessary? 950Kb for sin and cos?
It looks like. Have you looked (nm) what libm and libc functions your
module contains by now ?
There is still the old source inline math functions for x86 machines
floating on the net. If you can find it and take out what you need, you
might be way better off :-)
-- Jochen
Heinrich-Heine-Universität, Institut für Physikalische Chemie I
Universitätsstr. 1, Geb. 26.43.02.29, 40225 Düsseldorf, Germany
phone 02118113681 fax 02118115195 -- www-public.rz.uni-duesseldorf.de/~jochen
[EMAIL PROTECTED] -- [EMAIL PROTECTED] -- [EMAIL PROTECTED]
--- [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/