delphi xe disable RTTI

前端 未结 5 1342
自闭症患者
自闭症患者 2020-12-03 15:10

i have use delphi xe recently but exe size is very big because of rtti(i think)

howto remove rtti , and can i make my application size as small as delphi 2009 app

5条回答
  •  悲&欢浪女
    2020-12-03 16:01

    In short (full story provided by links in the splash's answer):

    {$RTTI EXPLICIT METHODS([]) PROPERTIES([]) FIELDS([])}

    Note that as of XE6 and newer, this needs to be in each individual unit for which you want to disable RTTI. Before that (XE5 and below) it could be in the DPR file and would apply to all units in the project.

提交回复
热议问题