How inlined are inlined functions?
Jason Merrill
jason@cygnus.com
Fri Dec 3 14:18:00 GMT 1999
>>>>> Joe Buck <jbuck@synopsys.COM> writes:
> So if you write code that you expect to have a lifetime of more than a
> week and a half, you should focus on maintainable design, not raw speed.
> Later on, you can do profiling, and only do speed hacks for the "hot
> spots" in your code. Those who have to maintain your code after you
> will thank you.
Hear, hear. As I recall, Knuth wrote an article many years ago talking
about how bad an idea it was to try to hand-optimize code without reference
to profiling information. People make a lot of work for themselves and
often end up making things worse.
Jason
More information about the Gcc
mailing list