min-sized-rust icon indicating copy to clipboard operation
min-sized-rust copied to clipboard

Dynamic linking

Open the8472 opened this issue 6 months ago • 2 comments

Dynamically linking against libstd and possibly other libraries can significantly reduce binary size (even though not overall size).

This has of course the caveat that rust has no stable ABI so everything needs to be compiled with the same compiler version and build flags. But it can still be useful for multi-binary projects that share a lot of code or embedded-linux-builds where recompile-the-world is an acceptable cost.

the8472 avatar Aug 02 '24 08:08 the8472