- 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
推薦閱讀
- 用“芯”探核:龍芯派開發(fā)實(shí)戰(zhàn)
- Learning Cocos2d-x Game Development
- 龍芯應(yīng)用開發(fā)標(biāo)準(zhǔn)教程
- 計(jì)算機(jī)應(yīng)用與維護(hù)基礎(chǔ)教程
- AMD FPGA設(shè)計(jì)優(yōu)化寶典:面向Vivado/SystemVerilog
- 嵌入式系統(tǒng)中的模擬電路設(shè)計(jì)
- Source SDK Game Development Essentials
- 深入理解序列化與反序列化
- 數(shù)字媒體專業(yè)英語(第2版)
- RISC-V處理器與片上系統(tǒng)設(shè)計(jì):基于FPGA與云平臺(tái)的實(shí)驗(yàn)教程
- 3D Printing Blueprints
- Intel FPGA權(quán)威設(shè)計(jì)指南:基于Quartus Prime Pro 19集成開發(fā)環(huán)境
- 觸摸屏應(yīng)用技術(shù)從入門到精通
- 計(jì)算機(jī)電路基礎(chǔ)(第2版)
- 微服務(wù)架構(gòu)基礎(chǔ)(Spring Boot+Spring Cloud+Docker)