- Expert C++
- Vardan Grigoryan Shunguang Wu
- 94字
- 2021-06-24 16:33:54
Optimization
Generating intermediate code helps the compiler to make optimizations in the code. Compilers try to optimize code a lot. Optimizations are done in more than one pass. For example, take the following code:
int a = 41;
int b = a + 1;
This will be optimized into this during compilation:
int a = 41;
int b = 41 + 1;
This again will be optimized into the following:
int a = 41;
int b = 42;
Some programmers have no doubt that, nowadays, compilers code better than programmers.
推薦閱讀
- JBoss Weld CDI for Java Platform
- ReSharper Essentials
- JavaScript+jQuery網(wǎng)頁特效設(shè)計任務(wù)驅(qū)動教程(第2版)
- Three.js開發(fā)指南:基于WebGL和HTML5在網(wǎng)頁上渲染3D圖形和動畫(原書第3版)
- 基于免疫進(jìn)化的算法及應(yīng)用研究
- Mastering Predictive Analytics with Python
- Hands-On Automation Testing with Java for Beginners
- Building RESTful Python Web Services
- Windows Phone 7.5:Building Location-aware Applications
- Web前端應(yīng)用開發(fā)技術(shù)
- SQL Server 2008 R2數(shù)據(jù)庫技術(shù)及應(yīng)用(第3版)
- 零基礎(chǔ)學(xué)C語言(第4版)
- HTML5程序設(shè)計基礎(chǔ)教程
- C#從入門到精通(微視頻精編版)
- OpenCV:Computer Vision Projects with Python