> 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-file-path=/etc/
>
> Which options do I have to reduce size of the binary? E.g. can I
> remove the zend engine?

you may want to re-generate zend_vm_execute.h
php zend_vm_gen.php --without-specializer
It will save ~300k.

also you may want to try to remove Reflection, SPL and Date extensions and 
optimize for size: -O1
instead of performance (-O2)
Don't forget to strip off debug info from the binary.

regards,
j 



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

Reply via email to