Re: [PHP-DEV] Impact of CFLAGS on GOTO and SWITCH executers

2006-10-16 Thread Sebastian Bergmann
Dmitry Stogov wrote: > You use -O0 and unoptimized execute() function require a lot of stack > space, because space for local variables is not reused. Thank you for this explanation, Dmitry. -- Sebastian Bergmann http://sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27

RE: [PHP-DEV] Impact of CFLAGS on GOTO and SWITCH executers

2006-10-16 Thread Dmitry Stogov
.. Dmitry. > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Sebastian Bergmann > Sent: Sunday, October 15, 2006 5:21 PM > To: internals@lists.php.net > Subject: Re: [PHP-DEV] Impact of CFLAGS on GOTO and SWITCH executers > > > Sebastian Berg

Re: [PHP-DEV] Impact of CFLAGS on GOTO and SWITCH executers

2006-10-15 Thread Ilia Alshanetsky
Given the tricky nature of enabling different execution modes I'd be very surprised to see people use non-default values, so to your answer of how well tested other executors are, I'd say not a whole lot. On 15-Oct-06, at 9:21 AM, Sebastian Bergmann wrote: Sebastian Bergmann wrote: What s

Re: [PHP-DEV] Impact of CFLAGS on GOTO and SWITCH executers

2006-10-15 Thread Sebastian Bergmann
Sebastian Bergmann wrote: > What strikes me as odd are the segmentation faults when PHP is built > with -O0 (no optimizations). Some more information of the segfaults: It looks as if the ackermann test is responsible for the segfaults. I uploaded a backtrace from GDB and a logfile from valgrin

[PHP-DEV] Impact of CFLAGS on GOTO and SWITCH executers

2006-10-15 Thread Sebastian Bergmann
Today I built PHP 4.4.4, PHP 5.0.5, PHP 5.1.6, and current PHP_5_2 (the last two each with CALL, GOTO, and SWITCH VMs) with GCC 3.4.6 and GCC 4.1.1 with -O{0|1|2|3|s} [1]. CFLAGS: -march=pentium-m -msse3 -O{0|1|2|3|s} -pipe configure options: --disable-cgi --disable-all I let each of the re