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

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. 

主站蜘蛛池模板: 垣曲县| 进贤县| 上思县| 嵩明县| 云龙县| 龙门县| 天镇县| 大足县| 虞城县| 紫云| 贵德县| 深圳市| 和田县| 嵩明县| 清水县| 新营市| 井陉县| 阳城县| 辽宁省| 田阳县| 禄丰县| 台湾省| 大同县| 榆中县| 榆林市| 古浪县| 罗江县| 区。| 杭锦后旗| 大名县| 五家渠市| 宾川县| 喜德县| 铜山县| 石林| 剑阁县| 佳木斯市| 江源县| 柳林县| 疏附县| 唐河县|