From owner-freebsd-mips@freebsd.org Mon Nov 21 18:16:23 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 24E10C4CCEA for ; Mon, 21 Nov 2016 18:16:23 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x229.google.com (mail-io0-x229.google.com [IPv6:2607:f8b0:4001:c06::229]) (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 DFEDD1D96 for ; Mon, 21 Nov 2016 18:16:22 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-io0-x229.google.com with SMTP id x94so47177139ioi.3 for ; Mon, 21 Nov 2016 10:16:22 -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=0V7rdUyCar5lC4RUmw+CS/mUBh6nCzR++ZWo+SjypJA=; b=OWWtbgkg0PNQh/lhAbd6wWbHPTShU3JQyBciPu96XDo50qGbmCLKbT/YdTnHW7IVId MvAACk0IbSVMszeW90n6J2HN/KUKs67ckrFIRphB8S9JzpAhXqU3GzHdeyBxPmK8YhcA L5U4w4jJuzk9UxVw59C/wKKtPEQrKOUziea9gEPYlpXXvL85QDUEPoDeTIFbx98zEKEV Zm+RWAMI03uIa+hjFg+iSWMO8JFryeesxmMl12OC03BBL8aUGGt6WHNwoCjV4gQAq7AS oK9VPaOdNoyo5lMS9Z1LpCU80doarR0DNJSV8OY7kApQndfo6gJttD2BbQWob2I1pWb4 dvRw== 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=0V7rdUyCar5lC4RUmw+CS/mUBh6nCzR++ZWo+SjypJA=; b=ehjj1BdTSxarh5K5B3CY9/CzA5roXjvb5g0yW0ggYy9c8zWQFk/QA9o5MznAKnWrw+ Uq5bVPCL/0S/FvTuH03xmQFytPQgGlB8wqQmoherjqFA7YOZ1sdI8NDPP36uqUxjNHAx QPP1otsSNZn/cvHhskYnB5TiYSGyI4yvQqUghTGsu0zkPyRyxfL5snjyQB2Jxnjn96zZ 0lg3WkDzpYRYnBA6sYOQY1upegtHzjc7YvfAgcbLy7gzjO22ruNam6sHKIj0gq0cTA+L tIUHD8e36EfoDU8kJsngvx0PXjHRh7Z1jww0aimqfJu0HwGqtw6X323+ZNUoYIzG/0BH Yx/Q== X-Gm-Message-State: AKaTC00CkWnGgocbTgXHWVKgjSGCsJMdw0SFppLsPgt9PxJ+0KnxeA4+ZyWxVS5J/VgQala3vC16X5rErHMCbg== X-Received: by 10.107.36.144 with SMTP id k138mr12369714iok.177.1479752181318; Mon, 21 Nov 2016 10:16:21 -0800 (PST) MIME-Version: 1.0 Received: by 10.36.39.134 with HTTP; Mon, 21 Nov 2016 10:16:20 -0800 (PST) In-Reply-To: <58332940.8030606@grosbein.net> References: <5831E800.60003@grosbein.net> <5832FF33.9010307@grosbein.net> <58330AB6.60306@grosbein.net> <58332491.3000706@grosbein.net> <58332940.8030606@grosbein.net> From: Adrian Chadd Date: Mon, 21 Nov 2016 10:16:20 -0800 Message-ID: Subject: Re: MIPS code size strangeness To: Eugene Grosbein Cc: Michael Zhilin , "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 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 18:16:23 -0000 hi, yes - freebsd-wifi-build defaults to using external gcc now. Try that as a build and see. -adrian On 21 November 2016 at 09:05, Eugene Grosbein wrote: > On 21.11.2016 23:47, Adrian Chadd wrote: >> Hiya, >> >> Well, let's dig into it a bit more. See what the latest gcc (5, or 6) >> will do when building a freebsd mips userland. It may also be >> something stupid - eg we can mark some code to stop inlining. > > Is it possible to obtain gcc6 MIPS cross-compiler for FreeBSD11/amd64 (my build system) > and make our buildworld/buildkernel use it instead of stock gcc 4.2? > >> MIPS binaries are going to be bigger than CISC binaries - but it >> shouldn't be /that/ much bigger. If there's cut/paste code that we can >> uninline, libraryify, etc to save space then we should. > > The C-code in question is not big and has not "copy-paste" parts. >