Regarding GCC Optimization flags and a customized profiler

2012-06-19 Thread Parang Saraf
Hi, I have developed a small profiler which uses AMD's IBS (Instruction Based Samling) to profile a program. With the help of it, I am able to generate quite detailed information about the program like how many times there is a branch miss for each branch or which instructions are causing a lot of

Weird optimization flags behavior

2012-08-05 Thread Parang Saraf
Hi, I am facing some weird issues with the optimization flags. I tried posting this in the gcc-help but got no response. Here is my query: I can see the flags enabled for each optimization level using "gcc -Q -On -help=optimizers" (flags enabled) Also, when I compile a program for a particular op