David Schleef[SMTP:[EMAIL PROTECTED]] wrote:
> On Tue, Feb 22, 2000 at 12:51:11PM +0000, Stuart Hughes wrote:
> >
> > Note also the following compiler feature:
> >
> > If have in your RT code:
> >
> > char buf[12] = "mystring";
> >
> > You get an error, due to an implicit call to memset.
>
>
> Nope. gcc-2.7.2.3 outputs assembly instructions that perform
> the memcpy, even with very long strings.
>
>
>
> dave...
>
Be careful. With *exactly* the statement above, compiled with -O2, memset is called.
With some shorter or longer strings, memset is not used.
-erwin
-- [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/