From owner-freebsd-mips@freebsd.org Mon Nov 21 22:43:06 2016 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AB60FC4D3A5 for ; Mon, 21 Nov 2016 22:43:06 +0000 (UTC) (envelope-from mizhka@gmail.com) Received: from mail-wm0-x231.google.com (mail-wm0-x231.google.com [IPv6:2a00:1450:400c:c09::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3DB9616F7 for ; Mon, 21 Nov 2016 22:43:06 +0000 (UTC) (envelope-from mizhka@gmail.com) Received: by mail-wm0-x231.google.com with SMTP id g23so7124094wme.1 for ; Mon, 21 Nov 2016 14:43:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=nq4QqHkN45DP8jYUp/nXnFYmxNqibP3i7AKPy9PbD2A=; b=AGPHZMxseHAWfjNhOR55NI0ypYfjXdLmQ4HW+tltkp1Fb7hgp8eZeEoFsltY9XspJu 1R5Dz10Kc5kGhpYuTI8OTCdqEojfzJd8F/u3t52UyyNuVQt4/44OAoIw6RqUl0hFW7NE YDVnCOaNJu98LNHAP5wGdSPOaBcheyRCs/IFuQ/pH+wSiYl573/ENHrw2Zj0G8mobRgC cmnBFe/buVBLu8qMW7j3hILIJBg50BXvR/MH+gXGzjLP0XfbQX+5UaaZG/1ZQe/xC3CF QdV9Q4t9FZ7RCA8KMFFpYrdtdX+7kvmSviXrbvgRO+A8TdYK6oNqDqv8ohCAdAxh7PBi iShA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=nq4QqHkN45DP8jYUp/nXnFYmxNqibP3i7AKPy9PbD2A=; b=cb6XKHokAW0v/qcY2PRP9eMvB7TxVOhM89tVY0ol9L5by4sotq+1X51kXv7c31+CSP KeNBmXKVhSylFGrtdfCT3T66NaRSwEcRzyh9sgyPCIlCCklKl2ogh+mXU9VUKeTphu5B m8K8kC3kDPPAU5g5cHtos2XAMi+BTV7SQi4126Jmjwe7fj2cROs0VrVart2aQ4Saf6JL Y9L/eUXL46OFaksVKGSRGlIroGwo4RPoTKgyelpy1fuCstBajOIEQkfdAaen0axnuZMM nmgFwK65WqU2kGfMPXBbB/EizJ1KryxCddZHj5ugd9NyNWR5g0lpXwv2aRTcb7CI+1Tk rVdQ== X-Gm-Message-State: AKaTC012wC/EcANumeAnU0DlbqMxviq4AMyX7ppQ+jcRTEo3kik1wSk8Rvqi6fED/8Tp55oystwMv/fWqmlylQ== X-Received: by 10.28.29.23 with SMTP id d23mr16530891wmd.91.1479768184559; Mon, 21 Nov 2016 14:43:04 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.152.131 with HTTP; Mon, 21 Nov 2016 14:43:03 -0800 (PST) In-Reply-To: <58333AE9.9090701@grosbein.net> References: <5831E800.60003@grosbein.net> <5832FF33.9010307@grosbein.net> <58330AB6.60306@grosbein.net> <58332491.3000706@grosbein.net> <58332940.8030606@grosbein.net> <58333AE9.9090701@grosbein.net> From: Michael Zhilin Date: Tue, 22 Nov 2016 01:43:03 +0300 Message-ID: Subject: Re: MIPS code size strangeness To: Eugene Grosbein Cc: Adrian Chadd , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Nov 2016 22:43:06 -0000 I've made experiment with ucl: #ifndef kh_inline #ifdef _MSC_VER #define kh_inline __inline #else #ifdef __mips__ #define kh_inline #else #define kh_inline inline #endif /* __mips__ */ #endif /* _MSC_VER */ #endif /* kh_inline */ It allows to make code small, and small improvement: libprivateucl.so size is 200Kb (-30Kb) To be continued... Thanks! On Mon, Nov 21, 2016 at 9:20 PM, Eugene Grosbein wrote= : > 22.11.2016 1:16, Adrian Chadd =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > >> hi, >> >> yes - freebsd-wifi-build defaults to using external gcc now. Try that >> as a build and see. >> > > Thanks! I'll try next day. > > >