RE: [PHP-DEV] PHP for embedded device: reduce size

2011-02-21 Thread Andi Gutmans
ng to send it out for review anyway so this could be it :) Andi -Original Message- From: martin.herr...@gmail.com [mailto:martin.herr...@gmail.com] On Behalf Of Martin Herrman Sent: Saturday, February 19, 2011 10:25 AM To: internals@lists.php.net Subject: [PHP-DEV] PHP for embedded devi

Re: [PHP-DEV] PHP for embedded device: reduce size

2011-02-20 Thread Martin Herrman
2011/2/20 Daniel Brown : > On Sun, Feb 20, 2011 at 10:42, Martin Herrman wrote: >> >> I already had --disabled-all. I have now tested with -Os instead of >> -O2 which results in a 2.8MB executable. So that helps a bit :-) > >    Try running `strip` on there to take out the excess symbols. This is

Re: [PHP-DEV] PHP for embedded device: reduce size

2011-02-20 Thread Daniel Brown
On Sun, Feb 20, 2011 at 10:42, Martin Herrman wrote: > > I already had --disabled-all. I have now tested with -Os instead of > -O2 which results in a 2.8MB executable. So that helps a bit :-) Try running `strip` on there to take out the excess symbols. -- Network Infrastructure Manager Doc

Re: [PHP-DEV] PHP for embedded device: reduce size

2011-02-20 Thread Ferenc Kovacs
On Sun, Feb 20, 2011 at 4:01 PM, Reindl Harald wrote: > > > Am 20.02.2011 15:52, schrieb Martin Herrman: > > 2011/2/20 Patrick E. : > > > >> php-cgi 5.2.x = ~2.4mb "./configure" without : > >> ... > >> --without-iconv \ > >> --without-pear \ > >> --without-gd \ > >> --disable-bcmath \ > >> --dis

Re: [PHP-DEV] PHP for embedded device: reduce size

2011-02-20 Thread Rasmus Lerdorf
On 2/20/11 7:42 AM, Martin Herrman wrote: > 2011/2/20 Reindl Harald : > >> There are some more swicthes >> --disable-all Disable all extensions which are enabled by default >> >> What about "--disable-all" followed by "--enable-feature" for all >> you want to have? >> >> The follwoing are not ne

Re: [PHP-DEV] PHP for embedded device: reduce size

2011-02-20 Thread Martin Herrman
2011/2/20 Reindl Harald : > There are some more swicthes > --disable-all   Disable all extensions which are enabled by default > > What about "--disable-all" followed by "--enable-feature" for all > you want to have? > > The follwoing are not needed in most cases > --disable-ipv6 > --disable-posix

Re: [PHP-DEV] PHP for embedded device: reduce size

2011-02-20 Thread Reindl Harald
Am 20.02.2011 15:52, schrieb Martin Herrman: > 2011/2/20 Patrick E. : > >> php-cgi 5.2.x = ~2.4mb "./configure" without : >> ... >> --without-iconv \ >> --without-pear \ >> --without-gd \ >> --disable-bcmath \ >> --disable-libxml --disable-dom --disable-simplexml --disable-xml >> --disable-xml

Re: [PHP-DEV] PHP for embedded device: reduce size

2011-02-20 Thread Lytochkin Boris
On Sat, Feb 19, 2011 at 9:24 PM, Martin Herrman wrote: > All, > > I have cross-compiled php-cgi for a MIPS device (mediaplayer), but the > binary is quite large, more than 3MB. I'm using: > > ./configure --prefix=../result/php-5.3.5 --host=i686-pc-linux-gnu > --target=mipsel-linux-gnu --build=mips

Re: [PHP-DEV] PHP for embedded device: reduce size

2011-02-20 Thread Martin Herrman
2011/2/20 Reindl Harald : > ./configure --help > > disable all things you do not need, but be careful as long you > do not know what you doing since "I thought zend engine is an > additional engine" sounds like you are missing basics I'll go through the list of options again and disable everythin

Re: [PHP-DEV] PHP for embedded device: reduce size

2011-02-20 Thread Martin Herrman
2011/2/20 Patrick E. : > php-cgi 5.2.x = ~2.4mb "./configure" without : > ... > --without-iconv \ > --without-pear  \ > --without-gd \ > --disable-bcmath  \ > --disable-libxml --disable-dom --disable-simplexml --disable-xml > --disable-xmlreader --disable-xmlwriter --without-pear  \ > --with-sqlit

Re: [PHP-DEV] PHP for embedded device: reduce size

2011-02-20 Thread Reindl Harald
Am 20.02.2011 11:09, schrieb Martin Herrman: > 2011/2/20 Alexey Zakhlestin : > >> what do you mean by "remove the zend engine"? >> zend engine is the core, upon which php is built. > > Ah, that explains a lot :-) I thought zend engine is an additional > engine for performance reasons.. > > Is

Re: [PHP-DEV] PHP for embedded device: reduce size

2011-02-20 Thread Patrick E.
On Sun, Feb 20, 2011 at 11:09 AM, Martin Herrman wrote: > Is there any other way to decrease binary size? (workaround is to put > php-cgi on external storage) php-cgi 5.2.x = ~2.4mb "./configure" without : ... --without-iconv \ --without-pear \ --without-gd \ --disable-bcmath \ --disable-libxml

Re: [PHP-DEV] PHP for embedded device: reduce size

2011-02-20 Thread Martin Herrman
2011/2/20 Alexey Zakhlestin : > what do you mean by "remove the zend engine"? > zend engine is the core, upon which php is built. Ah, that explains a lot :-) I thought zend engine is an additional engine for performance reasons.. Is there any other way to decrease binary size? (workaround is to

Re: [PHP-DEV] PHP for embedded device: reduce size

2011-02-20 Thread Alexey Zakhlestin
On Sat, Feb 19, 2011 at 9:24 PM, Martin Herrman wrote: > All, > > I have cross-compiled php-cgi for a MIPS device (mediaplayer), but the > binary is quite large, more than 3MB. I'm using: > > ./configure --prefix=../result/php-5.3.5 --host=i686-pc-linux-gnu > --target=mipsel-linux-gnu --build=mips

[PHP-DEV] PHP for embedded device: reduce size

2011-02-19 Thread Martin Herrman
All, I have cross-compiled php-cgi for a MIPS device (mediaplayer), but the binary is quite large, more than 3MB. I'm using: ./configure --prefix=../result/php-5.3.5 --host=i686-pc-linux-gnu --target=mipsel-linux-gnu --build=mipsel-linux-gnu --enable-cgi --disable-all --without-pear --with-config