Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51481 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83572 invoked from network); 20 Feb 2011 15:00:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2011 15:00:24 -0000 Authentication-Results: pb1.pair.com header.from=lytboris@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=lytboris@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: lytboris@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-iw0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:40301] helo=mail-iw0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 57/EA-21930-68C216D4 for ; Sun, 20 Feb 2011 10:00:23 -0500 Received: by iwn3 with SMTP id 3so418540iwn.29 for ; Sun, 20 Feb 2011 07:00:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=dh/3yBu0c6t8C2SFHPk63QM0Yw3woT6CmvII1H+ZAgg=; b=D1kfFjOTvAmDUFQSAw1Iphus35UJ+r6mI0FemJl8aP9qgO6Knr4POI4y9sNHJEzOq1 m7IHfhqz/Uf07KNcoIv0ZDBnWzcuQBp0jlTsWCZI7og2Vwk0y7Wd2s6exu6gO+t9UM+9 Wsxi56tesqgAfr9tzSoh4ZxCH5comutb3hXJI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=F93ayr/R672ex1f8vFLa4+UNGhRcebk93vF4Hk6a0yrriWCO89VSfdgVjNA+AAELNX xj4ukua4Z1++t/Cg0NhrGY58RfWbn9TXEXzzdhOfwpUSjkQU5vtTQpg7BU6N4L5xAQ3k +Ey6mPciGCn2i7EinC5fa5ZL3LZWB7Y7NHW64= MIME-Version: 1.0 Received: by 10.42.64.6 with SMTP id e6mr549343ici.399.1298214013948; Sun, 20 Feb 2011 07:00:13 -0800 (PST) Received: by 10.231.205.140 with HTTP; Sun, 20 Feb 2011 07:00:13 -0800 (PST) In-Reply-To: References: Date: Sun, 20 Feb 2011 18:00:13 +0300 Message-ID: To: martin@herrman.nl Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] PHP for embedded device: reduce size From: lytboris@gmail.com (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=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? Check Makefile and correct cc's -O setting to -Os before compiling. Is your binary stripped? -- Boris