谁能告诉我程序开头的
{$ l+ m- n- ......}其中每一项的具体含义?

解决方案 »

  1.   

    帮助里面全有的啊,如果你的英文不好的话建议你看一下《Delphi精要》,里面有说明的!
      

  2.   

    http://www.2ccc.com/article.asp?articleid=897
    常用的Delphi编译指令说明
      

  3.   

    编译指示:(来自delphi帮助 n- 没看到)
    Type Switch
    Syntax {$L+} or {$L-}
    {$LOCALSYMBOLS ON} or {$LOCALSYMBOLS OFF}
    Default {$L+}
    {$LOCALSYMBOLS ON}
    Scope Global
    ResThe $L switch directive enables or disables the generation of local symbol information. Local symbol information consists of the names and types of all local variables and constants in a module, that is, the symbols in the module's implementation part and the symbols within the module's procedures and functions.
    For units, the local symbol information is recorded in the unit file along with the unit's object code. Local symbol information increases the size of unit files and takes up additional memory when compiling programs that use the unit, but it does not affect the size or speed of the executable program.When a program or unit is compiled in the {$L+} state, the integrated debugger lets you examine and modify the module's local variables. Furthermore, calls to the module's procedures and functions can be examined via the View|Call Stack.
    The Include TD32 debug info and Map file options on the Linker page of the Project|Options dialog box produce local symbol information for a given module only if that module was compiled in the {$L+} state.
    The $L switch is usually used in conjunction with the $D switch, which enables and disables the generation of line-number tables for debugging. The $L directive is ignored if the compiler is in the {$D-} state.Type Switch
    Syntax {$M+} or {$M-}
    {$TYPEINFO ON} or {$TYPEINFO OFF}
    Default {$M-}
    {$TYPEINFO OFF}
    Scope Local
    The $M switch directive controls generation of runtime type information (RTTI). When a class is declared in the {$M+} state, or is derived from a class that was declared in the {$M+} state, the compiler generates runtime type information for fields, methods, and properties that are declared in a published section. If a class is declared in the {$M-} state, and is not derived from a class that was declared in the {$M+} state, published sections are not allowed in the class. Note that if a class is forward declared, the first declaration of the class must be declared with the $M switch.Note: The TPersistent class defined in the Classes unit of the VCL and CLX is declared in the {$M+} state, so any class derived from TPersistent will have RTTI generated for its published sections. The VCL/CLX uses the runtime type information generated for published sections to access the values of a component's properties when saving or loading form files. Furthermore, the IDE uses a component's runtime type information to determine the list of properties to show in the Object Inspector.There is seldom, if ever, any need for an application to directly use the $M compiler switch
      

  4.   

    有没有更详细的,最好是Borland Pascal的,不要是Delphi的。
      

  5.   

    对,关于这个东西请你自己参考帮助吧,其实Delphi的帮助很重要,我经常查看的。非常有用的,《Delphi精要》这本书中有详细的介绍!
      

  6.   

    设置项                       编译指令
                           
           Optimizations                     {$O}       Aligned record fields             {$A}       Stack frames                      {$W}       Pentium-safe FDIV                 {$U}       Range Checking                    {$R}       I/O Checking                      {$I}       Overflow Checking                 {$Q}         Strict Var-strings                {$V}       Comlete Boolean Eval              {$B}       Extended Syntax                   {$X}       Typed @ Operator                  {$T}       Open Parameters                   {$P}       Huge Strings                      {$H}       Assertions typed constants        {$J}       Debug information                 {$D}       Local sysnbols                    {$L}