官术网_书友最值得收藏!

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. 

主站蜘蛛池模板: 桓台县| 香河县| 桐庐县| 正定县| 格尔木市| 铁岭市| 漳州市| 瓦房店市| 宁远县| 嵊州市| 芒康县| 虹口区| 林西县| 台南县| 都匀市| 柯坪县| 静乐县| 铜鼓县| 青浦区| 建昌县| 滦平县| 福泉市| 聂荣县| 通城县| 隆回县| 樟树市| 靖州| 静宁县| 荔波县| 克什克腾旗| 高阳县| 云浮市| 玉龙| 安宁市| 沈阳市| 贵港市| 宁武县| 行唐县| 和顺县| 湟源县| 济南市|