/SUBSYSTEM (Specify Subsystem)
/SUBSYSTEM:{BOOT_APPLICATION|CONSOLE|EFI_APPLICATION|
EFI_BOOT_SERVICE_DRIVER|EFI_ROM|EFI_RUNTIME_DRIVER|NATIVE|
POSIX|WINDOWS)
[,major[.minor]]
The /SUBSYSTEM option specifies the environment for the executable.
The choice of subsystem affects the entry point symbol (or entry point function) that the linker will select.
The optional minimum and default major and minor version numbers for the subsystems are as follows.
|
Subsystem |
Minimum |
Default |
|---|---|---|
|
BOOT_APPLICATION |
1.0 |
1.0 |
|
CONSOLE |
5.01 (x86) 5.02 (x64) 6.02 (ARM) |
6.00 (x86, x64) 6.02 (ARM) |
|
WINDOWS |
5.01 (x86) 5.02 (x64) 6.02 (ARM) |
6.00 (x86, x64) 6.02 (ARM) |
|
NATIVE (with DRIVER:WDM) |
1.00 (x86) 1.10 (x64, ARM) |
1.00 (x86) 1.10 (x64, ARM) |
|
NATIVE (without /DRIVER:WDM) |
4.00 (x86) 5.02 (x64) 6.02 (ARM) |
4.00 (x86) 5.02 (x64) 6.02 (ARM) |
|
POSIX |
1.0 |
19.90 |
|
EFI_APPLICATION, EFI_BOOT_SERVICE_DRIVER, EFI_ROM, EFI_RUNTIME_DRIVER |
1.0 |
1.0 |
To set this linker option in the Visual Studio development environment
-
Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.
-
Select the Linker folder.
-
Select the System property page.
-
Modify the SubSystem property.
To set this linker option programmatically
-
See SubSystem.