2 ms·
Rearranging memory accesses is very difficult due to usually not having enough info to do the alias analysis. Also, C/C++ compilers really don't know that much
by astrange 5y ago
Rearranging memory accesses is very difficult due to usually not having enough info to do the alias analysis. Also, C/C++ compilers really don't know that much about their target architectures, especially not their memory performance - they barely do scheduling anymore since it's better to let the CPU reorder it.