-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Huge binary sizes #1649
Comments
Maybe you need to build the toolchain without debug information and maybe also strip the binaries? |
FWIW - here's a way to reduce the size of the core toolchain and its host based binaries (I'll look at Spike anon):
|
Regarding Spike...
Hope this all helps for you to built a leaner toolchain plus Spike. |
Or, more succinctly...
So that's 512MB versus the original default size of 3GB - about 1/6th the size:
|
Regarding the pk64 build failure when using
even though the
I'm not sure why this happens and would have to dig into the build logs and In any case pk64 doesn't build any host binaries - just RISC-V binaries for use on the target (Spike simulator in this case) - and builds with |
Thanks for the deep insights! I'm already very happy with the first part, building the whole toolchain with debugging symbols disabled, reducing the size significantly. Thanks again for the quick and easy solution! |
Hi @MrHighVoltage - glad it helped, thanks for confirming. I've flagged the issue previously here so maybe at some point in the future the default will be to build with |
Hi everyone,
first of all, Merry Christmas (to all who celebrate) and all the best for 2025!
Now, to my issue: We are integrating the RISC-V Toolchain into our Docker-based distribution for open-source chip design (IIC-OSIC-Tools). As of now, we are working on shrinking the image, to make it more accessible to people with limited bandwidth and storage available.
I found out, that there are a few binaries in the toolchain, that are huge, compared to the other <10 MiB binaries. Here is a list:
Is there a way to get more compact binaries in this case?
Thanks for your help and BR,
Georg
The text was updated successfully, but these errors were encountered: