From: Conor Dooley <conor@kernel.org>
To: Falcon <falcon@tinylab.org>
Cc: linux-riscv@lists.infradead.org,
Palmer Dabbelt <palmer@rivosinc.com>,
Nicholas Piggin <npiggin@gmail.com>,
Paul Burton <paulburton@kernel.org>,
Paul Walmsley <paul.walmsley@sifive.com>,
Guo Ren <guoren@kernel.org>,
Vincent Chen <vincent.chen@sifive.com>
Subject: Re: [PATCH] RISC-V: Enable dead code elimination
Date: Mon, 13 Feb 2023 19:39:50 +0000 [thread overview]
Message-ID: <Y+qSBu3YZH0JPY4I@spud> (raw)
In-Reply-To: <20230213173906.214784-1-falcon@tinylab.org>
[-- Attachment #1.1: Type: text/plain, Size: 1102 bytes --]
On Tue, Feb 14, 2023 at 01:39:06AM +0800, Falcon wrote:
> Select CONFIG_HAVE_LD_DEAD_CODE_DATA_ELIMINATION for RISC-V, allowing
> the user to enable dead code elimination. In order for this to work,
> ensure that we keep the alternative table by annotating them with KEEP.
>
> This boots well on qemu with both rv32_defconfig & rv64 defconfig, but
> it only shrinks their builds by ~1%, a smaller config is thereforce
> customized to test this feature:
>
> | rv32 | rv64
> --------|------------------------|---------------------
> No DCE | 4460684 | 4893488
> DCE | 3986716 | 4376400
> Shrink | 473968 (~10.6%) | 517088 (~10.5%)
>
> The config used above only reserves necessary options to boot on qemu
> with serial console, more like the size-critical embedded scenes:
>
> - rv64 config: https://pastebin.com/crz82T0s
> - rv32 config: rv64 config + 32-bit.config
>
> Signed-off-by: Falcon <falcon@tinylab.org>
I feel like I "need" to ask - is Falcon your actual name?
Sorry,
Conor.
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
[-- Attachment #2: Type: text/plain, Size: 161 bytes --]
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2023-02-13 19:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-13 17:39 [PATCH] RISC-V: Enable dead code elimination Falcon
2023-02-13 19:39 ` Conor Dooley [this message]
2023-02-14 8:42 ` Wu Zhangjin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y+qSBu3YZH0JPY4I@spud \
--to=conor@kernel.org \
--cc=falcon@tinylab.org \
--cc=guoren@kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=npiggin@gmail.com \
--cc=palmer@rivosinc.com \
--cc=paul.walmsley@sifive.com \
--cc=paulburton@kernel.org \
--cc=vincent.chen@sifive.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).