Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51494 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85702 invoked from network); 22 Feb 2011 04:21:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Feb 2011 04:21:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=andi@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=andi@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 63.205.162.117 as permitted sender) X-PHP-List-Original-Sender: andi@zend.com X-Host-Fingerprint: 63.205.162.117 us-mr1.zend.com Received: from [63.205.162.117] ([63.205.162.117:49645] helo=us-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 40/10-19277-DC9336D4 for ; Mon, 21 Feb 2011 23:21:34 -0500 Received: from us-gw1.zend.com (us-ex2 [192.168.16.15]) by us-mr1.zend.com (Postfix) with ESMTP id 1C80EC0407; Mon, 21 Feb 2011 20:22:54 -0800 (PST) Received: from US-EX2.zend.net ([fe80::9c09:d53f:7b4:5880]) by US-EX2.zend.net ([::1]) with mapi id 14.01.0255.000; Mon, 21 Feb 2011 20:21:30 -0800 To: "martin@herrman.nl" , "internals@lists.php.net" Thread-Topic: [PHP-DEV] PHP for embedded device: reduce size Thread-Index: AQHL0GJjE2Edoh9YY0ioTEzHtAmUnJQM7tMg Date: Tue, 22 Feb 2011 04:21:29 +0000 Message-ID: <8757232E56758B42B2EE4F9D2CA019C9FCD5C3@US-EX2.zend.net> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [63.205.162.122] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: RE: [PHP-DEV] PHP for embedded device: reduce size From: andi@zend.com (Andi Gutmans) HI Martin, Is it only file size you worry about or also memory footprint? I assume it'= d also be the latter. If so, we can share a patch we've worked on which could allow you to reduce= the memory footprint at compile time somewhat more (on the expense of perf= ormance, ...). We were going to send it out for review anyway so this could be it :) Andi -----Original Message----- From: martin.herrman@gmail.com [mailto:martin.herrman@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 device: reduce size All, I have cross-compiled php-cgi for a MIPS device (mediaplayer), but the bina= ry is quite large, more than 3MB. I'm using: ./configure --prefix=3D../result/php-5.3.5 --host=3Di686-pc-linux-gnu --tar= get=3Dmipsel-linux-gnu --build=3Dmipsel-linux-gnu --enable-cgi --disable-al= l --without-pear --with-config-file-path=3D/etc/ Which options do I have to reduce size of the binary? E.g. can I remove the= zend engine? Thanks in advance, Martin -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:= http://www.php.net/unsub.php