> On Fre, 19 Nov 1999 Jochen wrote:
> 
> >gcc -c module.c -o tmp.o
> >ld -r tmp.o -o module.o -lgcc
> 
> Opps, this should read:
>   gcc -r tmp.o -o module.o -lgcc
>   ^^^
        
        Jochen, could you explain it better, please?
        
        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?

> 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:
        gcc -nostdlib -static  -r -o rt_serbidir_sim.o
rt_serbidir_sim_obj.o rt_control_obj.o mime-crc/mime-crc.o -lm -lc

        I did not need linking with lgcc.
        Is this size really necessary? 950Kb for sin and cos?

Thanks in advance, sorry by my poor english...

-----------------------------------------------------------
Luiz Gustavo Bizarro Mirisola
MSc Student            State University of Campinas, Brazil
Mestrando em Ciencia da Computacao - IC-Unicamp/LRV-IA-CTI              

[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/

Reply via email to