关闭Delphi 2010 RTTI的方法
来源:互联网 发布:学编程好就业吗 编辑:程序博客网 时间:2024/04/29 11:58
今日见到的,虽然未用上D2010不过先记录下来。
扩充的RTTI信息将使编译生成的文件大小巨幅增大,而如下是关闭RTTI的方法:
There are some options which reduce the final executable size somewhat:
{$WEAKLINKRTTI ON} or dcc32 –weaklinkrtti command-line option
But a recompile of choice RTL and VCL units is required to eliminate much actual RTTI data, using this directive:
{$RTTI EXPLICIT METHODS([]) PROPERTIES([]) FIELDS([])}
The ‘EXPLICIT’ causes any classes defined after this point in the file to not inherit RTTI settings from the ancestor class, while the method, property and field clauses indicate that no extended RTTI should be produced for any of these elements at any level of visibility.
Having a decent level of RTTI available by default means that third-party libraries can assume its existence. The default level includes RTTI for all fields, which means that object graphs (modulo external resource links) are e.g. serializable at the binary level by default; public methods and properties having RTTI means that e.g. containers using Inversion of Control can apply to objects by default.
- 关闭Delphi 2010 RTTI的方法
- 关闭RTTI反射机制减小Delphi 2010编译出的可执行文件的大小
- Delphi 下的RTTI
- Delphi 2010 新增功能之: Rtti 单元(5): 获取方法的更多信息
- Delphi通过 RTTI信息重构类方法的原始声明
- Delphi 的RTTI机制浅探一
- Delphi 的RTTI机制浅探二
- delphi RTTI
- delphi rtti
- delphi 关闭进程方法
- [转]Delphi 的RTTI机制浅探
- Delphi 的RTTI机制浅探 ( 转贴 )
- Delphi 的RTTI机制浅探(续)
- Delphi 的RTTI机制浅探2
- Delphi 的RTTI机制浅探
- Delphi 的RTTI机制浅探
- Delphi 的RTTI机制浅探 (一)
- Delphi 的RTTI机制浅探 (二)
- 仅当使用了列的列表 并且 identity_insert 为 on 时 才能在表 中为标识列指定显式值。
- asp实现批量删除选中的多条记录
- gdb+gdbserver方式进行ARM程序调试
- 一些网站一些书籍
- spring IOC之Bean的scope属性值:prototype与singleton
- 关闭Delphi 2010 RTTI的方法
- 操作系统基础总结
- 指针的赋值问题
- 匪夷所思的“i=i++”
- C++中重载+操作符的正确方法
- Weblogic学习笔记
- 浪潮之巅第四章 — 计算机工业的生态链(全)
- 软通的面试题
- VMvare的使用----调整vmware虚拟机硬盘空间的方法