Linking
Go Up to Delphi Compiler
Project > Options > Building > Delphi Compiler > Linking
Use this page to set linker options for your application.
Options | Description |
---|---|
Target, Apply, Save |
See Target Options. |
Common items |
Linking Option | Description | Compiler switches | All platforms supported unless noted |
---|---|---|---|
Debug information |
Generates a line-number table for each procedure that maps object-code addresses into source text line numbers. Equivalent to the {$D+} Delphi compiler directive and the -V switch for DCC32. Default = False |
|
|
EXE Description |
Enter a description of your EXE file. This field can contain a string of as many as 255 characters. The string is linked to $D and included in the executable file. It is most often used to insert copyright information into the application. Copyright information can also be included as part of the VersionInfo file. Note that this option is only applicable to DLLs and application executables but not to packages. |
|
|
Generate console application |
Causes the linker to set a flag in the .exe file of the application indicating a console mode application. Default = False |
|
|
Image Base |
Specifies the preferred load address of the compiled image. This value is typically only changed when compiling DLLs. Default = 400000 |
|
|
Include remote debug symbols |
Check this if you are using remote or multi-device debugging. Generates the remote debug symbols file ( Default = False |
|
|
Map file |
The linker can generate a map file that contains general segment information, including a list of segments, the program start address, and any warning or error messages produced during the link. Default = Off
|
|
|
Map file ARM |
The linker can generate a map file that contains general segment information, including a list of segments, the program start address, and any warning or error messages produced during the link. Default = Off
|
|
|
Maximum stack size |
Indicates the total reserved size of the stack (only applicable to executable projects; disabled for DLLs). Memory-size settings can also be specified in your source code with the $M compiler directive. Default = 1048576 |
|
|
Minimum iOS version supported |
The minimum iOS version that your application supports. When you submit your application to the App Store, this value is used for filtering purposes. Default = 8.0 |
|
|
Minimum stack size |
Indicates the initial committed size of the stack (only applicable to executable projects; disabled for DLLs). Memory-size settings can also be specified in your source code with the $M compiler directive. Default = 16384 |
|
|
Options passed to the LD linker |
Additional options for the LD linker. |
|
|
Output resource string .drc file |
Creates a .drc file that contains the resource strings for the current project. For more information, see Adding Languages to a Project. |
|
|
Place debug information in separate TDS file |
Stores C++-style debug information in a separate When loading a C++ module, the debugger examines the timestamp of the accompanying .tds file. If the timestamp of the .tds file is older than that of the module by 5 seconds or more, the debugger considers the .tds file to be stale and therefore does not use it. Likewise, the IDE Event Log reports that no debug information was found for the module. To avoid the problem of a missing .tds file, do either of the following:
Default = False |
|
|
Set base address for relocatable images |
Controls the default load address for an application, DLL, or package. The number argument must be:
This option is equivalent to the {$IMAGEBASE} Delphi compiler directive. Default = 0 |
|
|
Set extra PE header flags |
Specifies additional flags for the PE (Portable Executable) header for your application. Default = 0 |
|
|
Set extra PE header optional flags |
Sets additional header fields in the PE (Portable Executable) file optional header. For details, see the Default = 0 |
|
|
Set OS version fields in PE header as |
Specifies the operating system version that is required to run the image. Sets the This option is equivalent to the {$SETPEOSVERSION} Delphi compiler directive. Default = 5.0 |
|
|
Set subsystem version fields in PE header as |
Specifies the Windows subsystem that is required to run the image, for a PE (Portable Executable) file. Sets the This option is equivalent to the {$SETPESUBSYSVERSION} Delphi compiler directive. Default = 5.0
|
|
|
Set user version fields in PE header as |
Specifies the version number of your application. Sets the This option is equivalent to the {$SETPEUSERVERSION} Delphi compiler directive. Default = 0 |
|
|
See Also
- DCC32.EXE, the Delphi Command Line Compiler
- DCC64.EXE, the Delphi 64-bit Command Line Compiler
- DCCOSX.EXE, the Delphi Compiler for macOS
- DCCIOS32.EXE, the Delphi Compiler for the iOS Simulator
- DCCAARM.EXE, the Delphi Compiler for Android
- DCCIOSARM.EXE, the Delphi Compiler for the 32-bit iOS Device
- DCCIOSARM64.EXE, the Delphi Compiler for the 64-bit iOS Device
- DCCLINUX64.EXE, the Delphi Compiler for Linux