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
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
Read the Online Help for Delphi ...
... and search Stack Overflow:
Keep in mind that the $RTTI
directive has to be included in every unit where it should take effect. See How can I set the $RTTI directive for the entire project?
In short (full story provided by links in the splash's answer):
{$RTTI EXPLICIT METHODS([]) PROPERTIES([]) FIELDS([])}
check this useful article
Shrinking large Delphi 2010 executables - removing RTTI properly
I do not think it is RTTI what adds so much size overhead to your application. How do you know it is?
Your problem is not related to RTTI. If you are talking about relatively small increase (100-200K), this is due to extra functions in RTL (added for Unicode support etc). If you get 500-700K increase or so, then check whether you link VCL UI units (Forms, Controls etc). If you get 3Mb increase, then you've turned on extra debug symbols.