Delphi command-line compiler[4]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 laurecn 的 blog

 

optimization       enables compiler optimizations. corresponds to {$o}.

stack frames  forces compiler to generate stack frames on all procedures and functions. corresponds to {$w}.

pentium-safe fdiv delphi only. generates delphi code that detects a faulty floating-point division instruction. corresponds to {$u}.

record field alignment aligns elements in structures to the specified number of bytes (1, 2, 4, or 8). choose the alignment type from the drop-down list. corresponds to {$a}.  note: in older versions of delphi, this option could be checked on or off. choosing 1 is the equivalent of off and 8 is the equivalent of on.

 

runtime errors        effect
 

range checking checks that array and string subscripts are within bounds. corresponds to {$r}.

i/o checking          checks for i/o errors after every i/o call. corresponds to {$i}.

overflow checking             checks overflow for integer operations. corresponds to {$q}.

 

syntax options         effect

 

strict var-strings sets up string parameter error checking. corresponds to {$v}. (if the open parameters option is selected, this option is not applicable.)

complete boolean eval evaluates every piece of an expression in boolean terms, regardless of whether the result of an operand evaluates as false. corresponds to {$b}.

extended syntax enables you to define a function call as a procedure and to ignore the function result. also enables pchar support. corresponds to {$x}.

typed @ operator             controls the type of pointer returned by the @ operator. corresponds to {$t}.

open parameters enables open string parameters in procedure and function declarations. corresponds to {$p}. open parameters are generally safer, and more efficient.

huge strings     enables new garbage collected strings. the string keyword corresponds to the ansistring type with this option enabled. otherwise the string keyword corresponds to the shortstring type. corresponds to {$h}. 

assignable typed constants enable this for backward compatibility with delphi 1.0 on windows. when enabled, the compiler allows assignments to typed constants. corresponds to {$j}.

 

debugging      effect

本文关键:Delphi command-line compiler
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top