From owner-freebsd-mips@freebsd.org Sun Nov 20 22:18:11 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 F1E05C4C84D for ; Sun, 20 Nov 2016 22:18:11 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-it0-x236.google.com (mail-it0-x236.google.com [IPv6:2607:f8b0:4001:c0b::236]) (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 BDC1013AD for ; Sun, 20 Nov 2016 22:18:11 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-it0-x236.google.com with SMTP id y23so90198257itc.0 for ; Sun, 20 Nov 2016 14:18:11 -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=Llv2+KDfPuNVTr8IU3NcvhulbwKKTR9+0UIdeVdlvaE=; b=FW4bIkKxAbtQtxf9metD+8KKimtIDUGilBPTBmellE3lqIk+pgt/XFY/hN5OLoAo9O BglE9am8+18SKWOjh18PwYVd0zu/HnGFpXFRknksdZhg+0kRpFbAsWlYre6jxbifUDnG eyfpGp7E9CwfpEnHQ55QwExuxFWEj1gJRzgzhQncBG7pLVOMWHHMHzr72T20fInVJJ3+ hCQldcV08lca/VhSS/cSdInILkiPeLqwkTKDQNVQIusdvEe3ulAXd5kjdvUukMl1Ndpg ojsCn5KM5TGkNewiHJ+JZvQWxhXAiV5GD0bpldcaGgkoXX1oi2aOBUGrPk/0CzfG1QQ0 S9sQ== 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=Llv2+KDfPuNVTr8IU3NcvhulbwKKTR9+0UIdeVdlvaE=; b=Xsd6HpV8NViOyt/u0SDQOofJfcz9SDkkJFeoE4JKueBvh5Py0gSHn/0Upe0aLFuwQ3 j/p5eKeJxxYNdbtyTkP9vdoa+Yj4KgR8k7x1GDM+pq1Z7ZHFoARfwYe860uTgjurpmWd uuSpxSz1uwobgcyEUrc/1RM6kRZOwmzR+g7ftqfFX4xUeRG+htkdJ8j9go26S5MMHTO8 oPDMeE08VTMNCta5zM2WdCJy+905LBT3/PruVniDmwYf4NhL7D3CtBmtu31yk2lRbFSm pbrFsinRr2w3jYNm6qakCitNCn5gCQ90amVKMGj9EA7f9haGfFoexDw4nxKvXzJgkoD/ rs8Q== X-Gm-Message-State: AKaTC02JWsurYii9CWJb5UKZeW2zp6OBbzEMEq1cThV/mVnaSmyNejbU5dY3iTHYyAXyUsYTls3CQQovGyOT6g== X-Received: by 10.36.138.67 with SMTP id v64mr6928182itd.39.1479680291165; Sun, 20 Nov 2016 14:18:11 -0800 (PST) MIME-Version: 1.0 Received: by 10.36.39.134 with HTTP; Sun, 20 Nov 2016 14:18:10 -0800 (PST) In-Reply-To: <5831E800.60003@grosbein.net> References: <5831E800.60003@grosbein.net> From: Adrian Chadd Date: Sun, 20 Nov 2016 14:18:10 -0800 Message-ID: Subject: Re: MIPS code size strangeness To: Eugene Grosbein Cc: "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: Sun, 20 Nov 2016 22:18:12 -0000 * is this gcc-4.2 ? * can you disassemble that mips function and see? thanks! -a On 20 November 2016 at 10:14, Eugene Grosbein wrote: > Hi! > > I'm currently struggle trying to fit my FreeBSD 12/mips build into 8M flash available. > It used to fit with early 11.0-CURRENT and it has over megabyte overhead with 12.0-CURRENT. > > Large parts are /usr/bin and /usr/lib and I've found something very strange. > For example: /usr/lib/libprivateucl.so.1 has 136064 bytes for amd64 > and it has 241560 bytes for mips. > > "nm -C -D --print-size --size-sort libprivateucl.so.1" shows the symbol "ucl_hash_replace" > has 330 bytes (0x14a) for amd64 and it has 25000 bytes (sic! 0x61a8) for mips. > > I understand that amd64 version is built with clang and MIPS code generated with gcc. > But why such large difference? In no way such small function ucl_hash_replace() > should expand to 25000 machine code bytes. > > I suspect other parts of code may have this problem too. > > Eugene Grosbein > _______________________________________________ > freebsd-mips@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org"