- Mastering Delphi Programming:A Complete Reference Guide
- Primo? Gabrijel?i?
- 251字
- 2021-06-24 12:33:34
Code inlining control
We will look into the concept of code inlining later in this chapter, in the section, Optimizing method calls, so this text will serve just as an introduction.
By setting the value of Code inlining control, you define the default behavior for the complete project. The possible values for that setting are On, Off, and Auto. This default value can be changed in the code by inserting {$INLINE ON}, {$INLINE OFF}, or {$INLINE AUTO} into the source.
The INLINE state can be set to a different value at a place where the inlined method is defined and a place where it is used (called). This creates six possible combinations.
When we look at the method definition, INLINE has the following meaning:
- INLINE ON: If the method is marked with the inline directive (more on that later), it will be marked as inlineable
- INLINE AUTO: Same as INLINE ON, with the addition that any routine not marked with inline will still be marked inlineable if its code size is less than or equal to 32 bytes
- INLINE OFF: The routine will not be marked as inlineable even if it is marked with inline
At the place of use, INLINE has a different meaning:
- INLINE ON: If a called method is marked as inlineable, it will be expanded inline (at the place of call) if possible
- INLINE AUTO: Same as INLINE ON
- INLINE OFF: The routine will not be expanded inline, even if it is marked inlineable
推薦閱讀
- 基于Proteus和Keil的C51程序設(shè)計項目教程(第2版):理論、仿真、實踐相融合
- Deep Learning with PyTorch
- 施耐德SoMachine控制器應用及編程指南
- 電腦常見故障現(xiàn)場處理
- The Applied AI and Natural Language Processing Workshop
- 平衡掌控者:游戲數(shù)值經(jīng)濟設(shè)計
- scikit-learn:Machine Learning Simplified
- Arduino BLINK Blueprints
- Machine Learning with Go Quick Start Guide
- Intel Edison智能硬件開發(fā)指南:基于Yocto Project
- Istio服務網(wǎng)格技術(shù)解析與實踐
- 數(shù)字媒體專業(yè)英語(第2版)
- Hands-On Motion Graphics with Adobe After Effects CC
- 新編電腦組裝與硬件維修從入門到精通
- FPGA實驗實訓教程