5 ms·
Not all of these should be used except when striving for absolute minimal sizes.
by mkesper 6y ago
Not all of these should be used except when striving for absolute minimal sizes.
- dijit 6y agoIs there an additional reason? I see some of them change behaviour or make things complex, but I don't see a performance impact or anything that indicates software will be more crashy.
- Sharlin 6y agoWell, not being able to use the standard library certainly makes it more difficult to write safe and performant programs.
- est31 6y agoMost of the options listed have a disadvantage which is why they aren't enabled by default. The LTO and codegen unit options increase compile time, removing std is worse for the development experience, using xargo (or cargo's build-std feature) requires a C compiler to be present and increases compile time (as std is being compiled).
- RockIslandLine 6y agoOptimizing for size versus performance often eliminates optimizations like unrolling loops. At the assembly level, it's sometimes true that a single instruction or smaller sequence of instructions takes more cpu cycles. Analyze the different instruction sequences here: https://www.nxp.com/docs/en/supporting-information/MC680X0OPTAPP.txt https://www.nxp.com/docs/en/supporting-information/MC680X0OP...