Date: 12/06/00
- Next message: hp <email protected>: "[PHP-DEV] PHP 4.0 Bug #8141: "define" as array index in class definition is ignored"
- Previous message: Andi Gutmans: "Re: [PHP-DEV] zend_hash_add_or_update flaw"
- In reply to: Andi Gutmans: "Re: [PHP-DEV] zend_hash_add_or_update flaw"
- Next in thread: Stanislav Malyshev: "Re: [PHP-DEV] zend_hash_add_or_update flaw"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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>
- Next message: hp <email protected>: "[PHP-DEV] PHP 4.0 Bug #8141: "define" as array index in class definition is ignored"
- Previous message: Andi Gutmans: "Re: [PHP-DEV] zend_hash_add_or_update flaw"
- In reply to: Andi Gutmans: "Re: [PHP-DEV] zend_hash_add_or_update flaw"
- Next in thread: Stanislav Malyshev: "Re: [PHP-DEV] zend_hash_add_or_update flaw"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

