What do you need the sin() function for?
You maybe able to use vectors and avoid using an '#include'.
Vectors are about two orders of magnitude faster on a x86.
The sin() in hardware is very complex. On a 486 it takes over a hundred
clock cycles. If you are using RTL for speed, vectors may help you get
some more speed.
- Kal.
Wei DING wrote:
>
> Hello, all,
>
> Can someone let me know how to use in my realtime task?
> My OS is Redhat 5.2 with kernel 2.0.36.
>
> In fact, I wrote the line
>
> #include <math.h)
>
> in my source file g2_m.cfor realtime module.
> And use the following line to compile it.
>
> cc -I/usr/src/rtlinux/linux/include -I//usr/src/rtlinux/rtl/include -Wall -W
> strict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -D__RT__ -D_
> _KERNEL__ -DMODULE -c -lm g2_m.c -o g2_m.o
>
> but I got the following message:
> cc: -lm: linker input file unused since linking not done.
>
> Why?
>
> thank you.
>
> Wei DING
>
> --- [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/
>
> ---
> Wei DING [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/
--- [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/