optimization report

2012-02-25 Thread Mahmood Naderan
Hi Does GCC report on optimizations? I mean, using -O3, it is good to see which part of code was the hardest part in optimization process. Or a report that shows which part of code used largest memory.   // Naderan *Mahmood;

Finding virtual address of functions in code

2018-07-01 Thread Mahmood Naderan via gcc
Hi, Is there any builtin function in C which prints the virtual address of functions including the main? I see __builtin_return_address() but that returns the “return address”. Regards, Mahmood