Re: callgrind and sin/cos under GCC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/11/2012 03:56 PM, Pete Flugstad wrote:
> Hi,
> 
>    I'm trying to profile (using valgrind's callgrind) some code that
> uses sin/cos and I'm seeing some things I'm not expecting.
> 
>   My OS is Ubuntu 12.04/x86_64, hardware is an Intel Xeon X5690.  GCC
> is the distro version, gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1.  I'm
> compiling with -O2.
> 
>   The strange thing is that I'm seeing sincos (from libm.so) is
> showing up in the callgrind output.   From reading the manual, GCC
> should replace our calls to sin and cos with __builtin_ versions,
> right? 

Yes, it does, and one of the things that expanding the builtins does is
call sincos().

Andrew.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux