- Hands-On Embedded Programming with C++17
- Maya Posch
- 84字
- 2021-08-20 10:20:47
Function inlining
The inline keyword in C++ is a hint to the compiler to let it know that we would like each call to a function whose name is preceded by this keyword to result in that function's implementation instead of being copied to the location of the call, thus skipping the overhead of a function call.
This is a compile-time optimization, which only adds the size of the function implementation to the compiler output, once for each distinct call to the inline function.
推薦閱讀
- 深入理解Spring Cloud與實戰(zhàn)
- FPGA從入門到精通(實戰(zhàn)篇)
- Applied Unsupervised Learning with R
- 硬件產品經理成長手記(全彩)
- 硬件產品經理手冊:手把手構建智能硬件產品
- INSTANT ForgedUI Starter
- 嵌入式系統(tǒng)中的模擬電路設計
- Mastering Adobe Photoshop Elements
- Practical Machine Learning with R
- 龍芯自主可信計算及應用
- FL Studio Cookbook
- 筆記本電腦芯片級維修從入門到精通(圖解版)
- Arduino項目案例:游戲開發(fā)
- Angular 6 by Example
- Building Machine Learning Systems with Python