Delphi Compiler Changes for XE2
- 1 Two New Delphi Cross Compilers
- 2 Delphi RTL Supports Cross-Platform Development
- 3 New DEFINEs for the Target Operating System
- 4 Unit Scope Names Now Required
- 5 Changes in Delphi Compiler Built-in Type Sizes
- 6 Extended Data Type Is Smaller on Win64 than on Win32
- 7 Bitwise Shift
- 8 Considerations for Preparing to Migrate to 64-bit
- 9 Platform-Specific Paths and Directories for Delphi or C++ Projects
- 10 New Delphi Compiler Options in the IDE
- 11 Compiler Version Table Added to Help
- 12 See Also
Two New Delphi Cross Compilers
Delphi supports cross-platform development for 64-bit Windows and for the Mac OS X platform. The IDE uses two new cross compilers to compile cross-platform applications:
Delphi RTL Supports Cross-Platform Development
The Delphi run-time library (RTL) has been modified to support development of applications for both the Win64 and Mac OSX target platforms. Exceptions include Windows-specific members and units; for example, Winapi units such as ActiveX and Messages.
The VCL, on the other hand, supports only Windows-based development (Win32 and Win64).
New DEFINEs for the Target Operating System
Eight new DEFINEs have been added:
- MACOS (Mac operating system)
For a complete list of predefined conditionals for Delphi, see Conditional compilation (Delphi).
Unit Scope Names Now Required
Changes in Delphi Compiler Built-in Type Sizes
Extended Data Type Is Smaller on Win64 than on Win32
DCC64.EXE generates code that uses SSE's XMMn registers. Floating-point values are stored in SSE's XMMn registers instead of FPU's ST(n) registers.
The Extended data type is 10 bytes on Win32, but is only a double (8 bytes) on Win64. This change affects numeric precision. For more details, see Delphi Considerations for the XE2 Release.
32-bit integral values will only shift in 32-bit space. 64-bit integral values will shift in 64-bit space.
Considerations for Preparing to Migrate to 64-bit
Platform-Specific Paths and Directories for Delphi or C++ Projects
For cross-platform application development, you can now associate a specific set of paths and directories with a target platform (such as OS X or 64-bit Windows):
Use the new Selected Platform field to display and specify platform-specific options. The Selected Platform field is located at the top of the following pages in Tools > Options:
- Tools > Options > Environment Options > C++ Options > Paths and Directories
- Tools > Options > Environment Options > Delphi Options > Library
- Tools > Options > Environment Options > Delphi Options > Library - Translated
New Delphi Compiler Options in the IDE
HPP output directory on Tools Options Environment Options Library page. See IDE Changes for XE2.