Re: optimizing out string functions when the string contains a NUL

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

 



On 6/20/12, Alexander Monakov <amonakov@xxxxxxxxx> wrote:
> Unlike printf(), puts() outputs a newline after the string, which is why it
> cannot be optimized out.
>
> Alexander
>
>

Correct, I realized that right after sending...
it could still have been optimized to putc('\n'), which is (most
probably) faster then puts, but as Ian explained, it's not worth it.

Thanks.


[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