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

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. 

主站蜘蛛池模板: 望都县| 连云港市| 肥西县| 大城县| 长岛县| 华宁县| 高碑店市| 高碑店市| 忻州市| 阜新市| 含山县| 惠州市| 长沙市| 驻马店市| 尉氏县| 华安县| 芜湖市| 山阴县| 保定市| 江川县| 甘孜县| 华坪县| 双峰县| 瑞昌市| 尚义县| 肥城市| 泰兴市| 安徽省| 留坝县| 古田县| 平度市| 瑞安市| 新疆| 武义县| 临江市| 乌鲁木齐市| 阜平县| 长岛县| 洪湖市| 富顺县| 合阳县|