Re: Re: Flat Short of MEMORY_BLOCK

Berend de Boer <[email protected]>
Newsgroups gmane.comp.lang.eiffel.gobo.general
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

"Franck Arnaud" <[email protected]> writes:

> Brian Heilig:
>
>> Because:
>> 
>> buffer[i] = a_byte;
>> 
>> is faster than:
>> 
>> memcpy (&buffer[i], &a_byte, 1);
>
> Huh? Why should it be? It's essentially doing the 
> same thing, and a C compiler should know how to optimise 
> memcpy! As usual, you must do benchmarks before making 
> such claims:

You guarantee that every C compiler on every platform does exactly
what gcc -O2 does???

- -- 
Live long and prosper,

Berend de Boer
(PGP public key: http://www.pobox.com/~berend/berend-public-key.txt)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>

iD8DBQFATq98IyuuaiRyjTYRAnJxAKCNskImfGP7mCiNMxN4hs8mvsnhZQCaA9Pg
PZt+MkzEgVU+tmjk1u/eQ1c=
=nQSh
-----END PGP SIGNATURE-----



To Post a message, send it to:   [email protected]
To Unsubscribe, send a blank message to: [email protected] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/gobo-eiffel/

<*> To unsubscribe from this group, send an email to:
     [email protected]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.