delphi xe禁用RTTI [英] delphi xe disable RTTI

查看:266
本文介绍了delphi xe禁用RTTI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近使用delphi xe,但是exe大小很大,因为rtti(我想)



如何删除rtti,我可以使我的应用程序大小小作为德尔福2009年应用程序(490 kb),没有comprssion;和rtti的使用是什么

解决方案

简而言之(在splash中的链接提供的全部故事):



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



请注意,从XE5和更新版本,这需要在您要禁用RTTI的每个单位中。之前(XE4及以下)它可能在DPR文件中,并适用于项目中的所有单位。


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 application(490 kb) without comprssion; and what is the use of rtti

解决方案

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

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

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

这篇关于delphi xe禁用RTTI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆