4 ms·
I can't think of a plausible way in which an unused global would affect compiler optimizations. Could you elaborate?
by tom_mellior 6y ago
I can't think of a plausible way in which an unused global would affect compiler optimizations. Could you elaborate?
- HelloNurse 6y agoThe pointer probably precedes interesting variables in the same data segment, which therefore shift to a different address that is cached differently.
- tom_mellior 6y agoSure, but that's not a compiler optimization issue. The compiler will emit the same instructions, they will just execute at a different speed if the data is elsewhere.