4 ms·
Oh so your problem is that when attempting to dynamically link to the standard library, you're missing out on the dead code elimination you'd get when staticall
by pitaj 4y ago
Oh so your problem is that when attempting to dynamically link to the standard library, you're missing out on the dead code elimination you'd get when statically linking. Rust doesn't have a stable ABI anyways, so you can't really share the standard library between programs unless you're really careful.
- synergy20 4y agoyou nailed it. neither LTO nor panic=abort can be used at dynamic link, no stable ABI is another thing. to me it means Rust is not a good fit for embedded space for majority of the use cases, sadly.
- pitaj 4y agoI'm not sure what embedded space you're referring to, but microcontrollers, in my experience, generally use monolithic binaries. I'm unsure why you'd wish to use dynamic linking in those cases.