Zeev Suraski wrote:
> How much time and memory did compiling zend_execute.c take?

Just looking at top and my watch.

Tested with -O2.
CPU is Celeron 466Mhz with 384MB RAM.
[yohgaki@dev HEAD]$ uname -a
Linux dev.localnet 2.4.18-10k #1 Tue Mar 12 21:42:04 JST 2002 i686 unknown
[yohgaki@dev HEAD]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i586-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Kondara MNU/Linux 2.1)

Compiler used about 20MB and took about 30 seconds to compile it.
-O3 does not make much difference.

We need to test with GCC3 and other platforms, though.

--
Yasuo Ohgaki

> 
> Zeev
> 
> At 10:08 21/04/2002, Yasuo Ohgaki wrote:
> 
>> Hi all,
>>
>> It seems we are better have --enable-inline-optimization option
>> after all.
>>
>> Andi told some "inline" directive has removed to make zend_execute.c
>> work well with -O2. (I don't have problem with -O3 also)
>>
>> How about make inline optimization as default option? and
>> have a --disable-inline-optimization option instead?
>>
>> Patch included.
>>
>> -- 
>> Yasuo Ohgaki
>>
>>
>>
>>
>> /usr/bin/diff: conflicting specifications of output style
>> --- Zend.m4.~1.31.~     Sun Apr  7 12:43:36 2002
>> +++ Zend.m4     Sun Apr 21 15:58:22 2002
>> @@ -126,11 +126,13 @@
>>  ])
>>
>>  AC_ARG_ENABLE(inline-optimization,
>> -[  --enable-inline-optimization   If you have much memory and are using
>> -                                 gcc, you might try this.],[
>> +[  --disable-inline-optimization
>> +                           Some GCC may needs few hundred mega bytes 
>> of memory to
>> +                           _compile_ zend_execute.c. If you have 
>> problem with compiling
>> +                           zend_execute.c, you might try this.],[
>>    ZEND_INLINE_OPTIMIZATION=$enableval
>>  ],[
>> -  ZEND_INLINE_OPTIMIZATION=no
>> +  ZEND_INLINE_OPTIMIZATION=yes
>>  ])
>>
>>  AC_ARG_ENABLE(memory-limit,
>> @@ -143,7 +145,7 @@
>>  AC_MSG_CHECKING(whether to enable experimental ZTS)
>>  AC_MSG_RESULT($ZEND_EXPERIMENTAL_ZTS)
>>
>> -AC_MSG_CHECKING(whether to enable inline optimization for GCC)
>> +AC_MSG_CHECKING(whether to enable zend_execute.c inline optimization 
>> for GCC)
>>  AC_MSG_RESULT($ZEND_INLINE_OPTIMIZATION)
>>
>>  AC_MSG_CHECKING(whether to enable a memory limit)
>> @@ -181,7 +183,7 @@
>>
>>
>>  changequote({,})
>> -if test -n "$GCC" && test "$ZEND_INLINE_OPTIMIZATION" != "yes"; then
>> +if test -n "$GCC" && test "$ZEND_INLINE_OPTIMIZATION" == "yes"; then
>>    INLINE_CFLAGS=`echo $ac_n "$CFLAGS $ac_c" | sed s/-O[0-9s]*//`
>>  else
>>    INLINE_CFLAGS="$CFLAGS"
>>
>> -- 
>> PHP Development Mailing List <http://www.php.net/>
>> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 




-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to