C++ Compiler Option Changes for XE
Go Up to BCC32, the C++ Command-Line Compiler
This topic is a summary of C++ command-line options, new and changed, for the XE release.
Contents |
New options
-CE
Execution character set
-Hp
Print headers as they are included
-Vbi
Follow C89 rules for immediates
--sysroot
Set the logical root directory for headers, libraries, and frameworks
(Paths specified in --sysinc or --syslib that begin with '/' are prefixed with this value).
--sysinc
Set the system include file search path
(if specified, sysroot will be prepended)
--syslib
Set the system library file search path
(if specified, sysroot will be prepended)
--version
Show compiler version
New options (cpp32 only)
-Sl
Generate #line style output
-SI
Accept IDL specific syntax
Changed help strings
-CP
NEW: Default text character set
OLD: Enable code paging (for MBCS)
-Vbr
NEW: Allow old Borland rules for reference binding
OLD: Allow non-const reference binding
--savemem
(was -CX)
NEW: Set maximum SAVEMEM memory (in Mb)
(This is the contiguous memory allocated to store global symbols and similar constructs. Pre-compiled headers use this memory)
OLD: Set maximum SAVEMEM size (in Mb)
-W -> -t
The -tW and -W versions of these options are still supported for backward compatibility
-tR
(was -tWR or -WR)
Target uses the dynamic RTL
-tV
(was -tWV or -WV)
Target uses the VCL GUI framework
-tD
(was -tWD or -WD)
Generate a shared library
-tP
(was -tWP or -WP)
Generate a package
-tM
(was -tWM or -WM)
Target is multithreaded
-t and -W option changes
The behavior of some target options has changed. The following lists additional (NEW) behavior resulting from the option that did not occur before. The effect of the change is that -tXYZ (or -WXYZ) is the same as -tX -tY -tZ (or -WX -WY -WZ).
-tCDR
Target uses the dynamic RTL
Now also: Generate a shared library
-tCDV
Target uses the VCL GUI framework
Now also: Generate a shared library
-tCV
Target uses the VCL GUI framework
Now also: Generate a console app
-tCR
Target uses the dynamic RTL
Now also: Generate a console app
-WM
Target is multi-threaded.
Now also: Generate a windows app
-WCDR
Target uses the dynamic RTL
Now also: Generate a shared library
-WCDV
Target uses the VCL GUI framework
Now also: Generate a shared library
-WCV
Target uses the VCL GUI framework
Now also: Generate a console app
-WCR
Target uses the dynamic RTL
Now also: Generate a console app
-WU
Target is a unicode app
Now also: Generate a windows app
-O option changes
The syntax for disabling optimization options has changed.
The syntax which used to be -O-X for a sub-option X, is now -OX-.
-OS and -Or are used as examples below, but any -O sub-options apply:
-OS-
(was -O-S) Disable scheduling
-Or-
(was -O-r) Disable register variables