- 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.
推薦閱讀
- Java Web開發(fā)學(xué)習(xí)手冊
- FuelPHP Application Development Blueprints
- 精通JavaScript+jQuery:100%動態(tài)網(wǎng)頁設(shè)計密碼
- Java異步編程實戰(zhàn)
- Python入門很簡單
- Vue.js前端開發(fā)基礎(chǔ)與項目實戰(zhàn)
- Java Web及其框架技術(shù)
- 青少年美育趣味課堂:XMind思維導(dǎo)圖制作
- 程序員考試案例梳理、真題透解與強化訓(xùn)練
- Kotlin從基礎(chǔ)到實戰(zhàn)
- Java系統(tǒng)化項目開發(fā)教程
- 執(zhí)劍而舞:用代碼創(chuàng)作藝術(shù)
- Tableau 10 Bootcamp
- 持續(xù)輕量級Java EE開發(fā):編寫可測試的代碼
- WildFly Cookbook