- 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
推薦閱讀
- 零點起飛學Xilinx FPG
- Aftershot Pro:Non-destructive photo editing and management
- Linux KVM虛擬化架構實戰指南
- 計算機組裝與系統配置
- Mastering Delphi Programming:A Complete Reference Guide
- Linux運維之道(第2版)
- 硬件產品經理成長手記(全彩)
- 計算機應用與維護基礎教程
- 計算機維修與維護技術速成
- The Deep Learning with Keras Workshop
- Rapid BeagleBoard Prototyping with MATLAB and Simulink
- 單片機技術及應用
- 圖解計算機組裝與維護
- Arduino項目開發:智能生活
- 筆記本電腦的結構、原理與維修