4 ms·
Dont you cave in blindly believing into the infoscience gods of old having done good. Demand profile logs, demand numbers, demand evidence. Compilers do the mos
by lunchTime42 11y ago
Dont you cave in blindly believing into the infoscience gods of old having done good.
Demand profile logs, demand numbers, demand evidence.
Compilers do the most utterly unexpected nonsense, forget the most trivial optimisations.
Take your code to
https://gcc.godbolt.org/ https://gcc.godbolt.org/
and read what your "Compiler-knows-best" does with your code.
yes, it doesent matter often in the end, cause even bad code must wait for worser memory, but still..
- joosters 11y agoCould you give an example of 'forgetting the most trivial optimizations' please? It would be a bug in a compiler and many people would be interested in fixing it.