Re: [PHP-DEV] zend_hash_add_or_update flaw From: Sascha Schumann (sascha <email protected>)
Date: 12/06/00

> The second we put nDataSize as the third parameter we can say bye bye to
> any compiler optimization. This is of course, if we actually know (and I
> don't) if some compilers would optimize this.

    Apparently, GCC does that:

    $ gcc -O -c y.c z.c
    $ nm y.o
    00000000 t gcc2_compiled.
    00000000 T main
    $ nm z.o
    00000000 t gcc2_compiled.
    00000000 T main
             U memcpy

    y.c uses a constant, z.c a variable as third parameter to
    memcpy.

    - Sascha

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>