• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Delphi的编译指令(4):编译指令全表(未完)

原作者: [db:作者] 来自: [db:来源] 收藏 邀请
指令及默认值 可选值 范围 注释 举例
{$A8}
{$ALIGN8}
{$A+},{$A-},
{$A1},{$A2},{$A4},{$A8};
{$ALIGN ON},{$ALIGN OFF},
{$ALIGN 1},{$ALIGN 2},
{$ALIGN 4},{$ALIGN 8}
Local
{$APPTYPE GUI} {$APPTYPE GUI},
{$APPTYPE CONSOLE}
Global
{$B-}
{$BOOLEVAL OFF}
{$B+},{$B-};
{$BOOLEVAL ON},
{$BOOLEVAL OFF}
Local
{$C+}
{$ASSERTIONS ON}
{$C+},{$C-};
{$ASSERTIONS ON},
{$ASSERTIONS OFF}
Local
{$D+}
{$DEBUGINFO ON}
{$D+},{$D-}
{$DEBUGINFO ON},
{$DEBUGINFO OFF}
Global
{$DENYPACKAGEUNIT OFF} {$DENYPACKAGEUNIT ON}, Local
{$DESCRIPTION 'text'} Global
{$DESIGNONLY OFF} {$DESIGNONLY ON},
{$DESIGNONLY OFF}
Local
{$E-} {$E+},{$E-}  
{$E extension}
{$EXTENSION extension}
 
{$EXTERNALSYM identifier}
{$F-} {$F+},{$F-}  
{$FINITEFLOAT ON} {$FINITEFLOAT ON},
{$FINITEFLOAT OFF}
Global
{$G+}
{$IMPORTEDDATA ON}
{$G+},{$G-};
{$IMPORTEDDATA ON},
{$IMPORTEDDATA OFF}
Local
{$H+}
{$LONGSTRINGS ON}
{$H+},{$H-}
{$LONGSTRINGS ON},
{$LONGSTRINGS OFF}
Local
{$HINTS ON} {$HINTS ON},
{$HINTS OFF}
Local
{$HPPEMIT 'string'}
{$I filename}
{$INCLUDE filename}
  Local
{$I+}
{$IOCHECKS ON}
{$I+},{$I-};
{$IOCHECKS ON},
{$IOCHECKS OFF}
Local    
{$IMAGEBASE $00400000} {$IMAGEBASE number} Global
{$IMPLICITBUILD ON},{$IMPLICITBUILD OFF} {$IMPLICITBUILD ON} Global
{$J-}
{$WRITEABLECONST OFF}
{$J+},{$J-}
{$WRITEABLECONST ON},
{$WRITEABLECONST OFF}
Local
{$K-} {$K+},{$K-}
{$L+}
{$LOCALSYMBOLS ON}
{$L+},{$L-}
{$LOCALSYMBOLS ON},
{$LOCALSYMBOLS OFF}
Global
{$L filename}
{$LINK filename}
  Local    
$LIBPREFIX 'lib' or $SOPREFIX 'bpl' 
$LIBSUFFIX ' '
$LIBVERSION ' '
$LIBPREFIX 'string'
$LIBSUFFIX 'string'
$LIBVERSION 'string'
Global    
{$M-}
{$TYPEINFO OFF}
{$M+},{$M-}
{$TYPEINFO ON},
{$TYPEINFO OFF}
Local
{$M 16384,1048576} {$M minstacksize,maxstacksize};
{$MINSTACKSIZE number}
{$MAXSTACKSIZE number}
     
{$M 1048576} {$M reservedbytes}
{$RESOURCERESERVE reservedbytes}
Global Linux  
{$MESSAGE HINT|WARN|ERROR|FATAL 'text string'}   Local    
{$METHODINFO OFF} {$METHODINFO ON},
{$METHODINFO OFF}
     
{$N+} {$N+},{$N-}
{$NODEFINE identifier}        
{$NOINCLUDE filename}        
{$O+}
{$OPTIMIZATION ON}
{$O+},{$O-};
{$OPTIMIZATION ON},
{$OPTIMIZATION OFF}
Local
{$ObjExportAll Off} {$ObjExportAll On},
{$ObjExportAll Off}
Global
{$P+}
{$OPENSTRINGS ON}
{$P+},{$P-}
{$OPENSTRINGS ON},
{$OPENSTRINGS OFF}
Local
{$POINTERMATH OFF} {$POINTERMATH ON},
{$POINTERMATH OFF}
Local    
{$Q-}
{$OVERFLOWCHECKS OFF}
{$Q+},{$Q-}
{$OVERFLOWCHECKS ON},
{$OVERFLOWCHECKS OFF}
Local
{$R filename}
{$RESOURCE filename}
{$R *.xxx}
{$R filename.res filename.rc}
       
{$R-}
{$RANGECHECKS OFF}
{$R+},{$R-}
{$RANGECHECKS ON},
{$RANGECHECKS OFF}
Local
{$REALCOMPATIBILITY OFF} {$REALCOMPATIBILITY ON},
{$REALCOMPATIBILITY OFF}
Local    
{$RUNONLY OFF} {$RUNONLY ON},
{$RUNONLY OFF}
Local    
{$S-} {$S+},{$S-}
{$SetPEFlags <integer expression>}
{$SetPEOptFlags <integer expression>}
  Local    
{$T-}
{$TYPEDADDRESS OFF}
{$T+},{$T-}
{$TYPEDADDRESS ON},
{$TYPEDADDRESS OFF}
Global
{$U-}
{$SAFEDIVIDE OFF}
{$U+},{$U-}
{$SAFEDIVIDE ON},
{$SAFEDIVIDE OFF}
Local
{$V+}
{$VARSTRINGCHECKS ON}
{$V+},{$V-}
{$VARSTRINGCHECKS ON},
{$VARSTRINGCHECKS OFF}
Local
{$W-}
{$STACKFRAMES OFF}
{$W+},{$W-}
{$STACKFRAMES ON},
{$STACKFRAMES OFF}
Local
{$WARN ON} {$WARN identifier ON},
{$WARN identifier OFF}
Local    
{$WARNINGS ON} {$WARNINGS ON},
{$WARNINGS OFF}
Local    
{$WEAKPACKAGEUNIT OFF} {$WEAKPACKAGEUNIT ON},
{$WEAKPACKAGEUNIT OFF}
Local    
{$X+}
{$EXTENDEDSYNTAX ON}
{$X+},{$X-};
{$EXTENDEDSYNTAX ON},
{$EXTENDEDSYNTAX OFF}
Global
{$YD}
{$DEFINITIONINFO ON} 
{$Y+},{$Y-},{$YD};
{$REFERENCEINFO ON},
{$REFERENCEINFO OFF};
{DEFINITIONINFO ON},
{DEFINITIONINFO OFF}
Global
{$Z1}
{$MINENUMSIZE 1}
{$Z1},{$Z2},{$Z4};
{$MINENUMSIZE 1},
{$MINENUMSIZE 2},
{$MINENUMSIZE 4}
Local
$DEFINE
$UNDEF

$IFDEF
$ELSE
$ENDIF

{$IF DEFINED(...)}
{$IFEND}

{$IF NOT DEFINED(...)}
{$IFEND}

{$IF DEFINED(...) OR DEFINED(...)}
{$IFEND}

{$IF DEFINED(...) AND DEFINED(...)}
{$IFEND}

{$IF System.Const >= Number}
{$IFEND}

{$IFOPT ...}
{$ELSE}
{$ENDIF}
       
         
{$region 'text'} ... {$endregion}


Delphi 2009、2010 减小文件尺寸的方法:
//在 dpr 文件中加入:
{$WEAKLINKRTTI ON}
{$RTTI EXPLICIT METHODS([]) PROPERTIES([]) FIELDS([])}


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Matlab绘制直方图发布时间:2022-07-18
下一篇:
Delphi安装控件后提示E2202Requiredpackage'****'notfound错误,路径引用思考, ...发布时间:2022-07-18
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap