What is that used for? I tried it and my compiled code went from 26K to 43K.I am not sure GCC is concerned with caches as much as locality. This is probably correct most of the time. We will always have to worry about locality on caches. (Unless you can reduce the tag hardware. As core counts rise the line size becomes an issue.)
Note O3 may be used by CMake which will trigger unrolling. Here is how I override CMake release profile. (I use default.)Code:
# Hack for CMakeset(CMAKE_C_FLAGS_RELEASE "-O3 -g")set(CMAKE_CXX_FLAGS_RELEASE "-O3 -g")set(CMAKE_ASM_FLAGS_RELEASE "-O3 -g")
Statistics: Posted by Mike**K — Sun Oct 13, 2024 11:48 pm