- 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與實戰
- 施耐德SoMachine控制器應用及編程指南
- INSTANT Wijmo Widgets How-to
- Arduino BLINK Blueprints
- “硬”核:硬件產品成功密碼
- 電腦組裝與維護即時通
- 電腦橫機使用與維修
- FreeSWITCH Cookbook
- 從企業級開發到云原生微服務:Spring Boot實戰
- ARM接口編程
- Practical Artificial Intelligence and Blockchain
- Nagios系統監控實踐(原書第2版)
- Applied Deep Learning with Keras
- 嵌入式系統原理:基于Arm Cortex-M微控制器體系
- CPU設計實戰:LoongArch版