Re: how is strcmp implemented so efficiently?

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

 



On Tue, Sep 30, 2008 at 18:40, Reza Roboubi <reza@xxxxxxxxxx> wrote:
> I noticed that strcmp is extremely smart.  It knows when one parameter has
> constant length, determined at compile time.  In that case it reverts to an
> inline version of the x86 string commands.
>

Sounds like one of the optimizer passes has special-case code to handle it.

[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