On 03/08/13 12:47, alex margolin wrote:
(...) The way this works is that you build icc with profiling, run it to gather the profiling data, and then build again based on this data. The optimized build reorganizes the functions to be roughly in the order they are called in the code, which makes most critical functions be on the same page as their callers, and a few pages keep all the performance critical code. Is there a way to do the same (or similar) with gcc? I'm ready to do some coding for gcc (plugin?) if it's feasible... Thanks, Alex
Yes, search for 'profile' in the gcc manual.