8000 Explore --icf · Issue #1017 · ariel-os/ariel-os · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Explore --icf #1017

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
chrysn opened this issue May 5, 2025 · 0 comments
Open

Explore --icf #1017

chrysn opened this issue May 5, 2025 · 0 comments
Labels
build system enhancement New feature or request

Comments

@chrysn
Copy link
Member
chrysn commented May 5, 2025

Description

We're using the LLD linker, which is said to produce "slightly larger binary artifacts".

Motivation

Small binaries are generally good, and deduplication doesn't hurt, especially because we don't have issues with locality of instructions on most platforms.

Current Implementation

The farthest I got with this is injecting RUSTFLAGS="-Clink-arg=--icf=all" into the build system -- but that resulted in zero sizes being shown by laze build size. It's a bit weird: Values other than the legal all / none / safe do cause errors as expected, but giving any legal value (even the default none, to my surprise) makes things break silently.

Are you planning to do it yourself in a pull request?

Maybe

@chrysn chrysn added enhancement New feature or request build system labels May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build system enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant
0