Overlooked Essentials For Optimizing Code

From Auther's Blog (English):

 

http://www.drdobbs.com/blog/archives/2010/09/overlooked_esse.html;jsessionid=ZCDFT154FWF4LQE1GHRSKHWATMY32JVN

 

From ChinaUnix (Chinese):

 

http://tech.chinaunix.net/a2010/0925/1107/000001107301.shtml  

 

What I have got from this article.

 

1、Using a Profiler:

Using a profiler to find out the bottleneck of it.Then you can speed your time on where needed exactly.Cost little to do the better.

 

2、Lookint at the assemly code being executed:

Check the Asm code of your c/c++ source code compiled by the compiler.Then you will find what you wanna know.such as is it really inline?,is it going on as we think? etc. The assemly code always tells the truth of what the compiler have done.

 

There is no 'maybe' or no 'I think' in the programming.You must say 'sure' of what you have done about you code.You must know everything of it erverytime.

 

 

 

posted @ 2011-02-07 00:10  麒麟子MrKylin  阅读(377)  评论(0编辑  收藏  举报