Delphi command-line compiler[5]

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

本文简介:选择自 laurecn 的 blog

 

debug information puts debug information into the unit (.dcu or .dpu) file. corresponds to {$d}.

local symbols             generates local symbol information. corresponds to {$l}..

reference info/definitions only generates symbol reference information used by the code browser, code explorer, and project browser. corresponds to {$y}. if reference info and definitions only are both checked ({$yd}), the compiler records information about where identifiers are defined. if reference info is checked but definitions only is unchecked ({$y+}), the compiler records information about where each identifier is defined and where it is used. these options have no effect unless debug information and local symbols (see above) are selected.

 

assertions       generates code for assertions placed in code. corresponds to {$c}.. unlike exceptions, assertions can be removed for the final build. after disabling the option, rebuild the code base to eliminate assertions.

use debug dcus allows you to link in debug versions of clx. the debug dcus contain debug information and are built with stack frames. when this option is checked, the compliler prepends the debug dcu path (specified in tools|debugger options on the general page) to the unit search path specified in project|options on the directories/conditionals page.

 

default check box
default check box saves the current settings as the default for each new project.

 

 

compiler mode options
a few options affect how the compiler itself functions. as with the other options, you can use these with either the hyphen or the slash format. remember to separate the options with at least one blank.

 

note:      command line compiling without an explicit make (-m) or build (-b) switch performs an in-memory compile (make) and link, without flushing anything to disk except the specified compilation unit (unit, program, library, or package).

 

for example:

 

dcc

 

will create a binary represenatation only for the specified file; any used units will not get their dcu or dpu files written to disk.

 

make (-m) option

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

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

go top