The compiler is your friend
Posted Aug 30, 2012 0:10 UTC (Thu) by
man_ls (subscriber, #15091)
In reply to:
Quotes of the week by epa
Parent article:
Quotes of the week
Why not learn to stop worrying and love the compiler? Leave the pesky business of determining whether a particular function must be inlined (on a particular combination of architecture and processor) to your friendly compiler.
From my remote days as a C developer I remember that there was an insane pleasure in trying to optimize every little bit out of the tools, but nowadays it makes less sense than ever, what with smart compilers and link time optimizations and branch prediction and steady improvements in processors every couple of years. Specially in the Linux kernel, targeting ARM SoC's and 32-processor boxes with the same code, and having to maintain it for decades, it is really hard to see the point to inline by hand.
(
Log in to post comments)