You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Learn more about: /KERNEL (Create kernel mode binary)."
3
+
title: /KERNEL
4
+
ms.date: "08/25/2023"
5
+
---
6
+
# /KERNEL (Create kernel mode binary)
7
+
8
+
Create a binary that is suitable for running in kernel mode.
9
+
10
+
## Syntax
11
+
12
+
> **`/KERNEL`**
13
+
14
+
## Remarks
15
+
16
+
Causes the linker to emit a warning if any object file or library linked in the binary wasn't compiled with [/kernel](kernel-create-kernel-mode-binary.md).
17
+
18
+
Code that can run in kernel mode must be compiled with the **`/kernel`** option. If you link a binary that contains code that wasn't compiled with **`/kernel`**, the binary might not run correctly in kernel mode.
19
+
20
+
Code for kernel mode is compiled with a simplified set of C++ language features that are specific to code that runs in kernel mode. The compiler produces warnings for C++ language features that are potentially disruptive but can't be disabled. For more information about compiling code in kernel mode, see [/kernel (Create kernel mode binary)](kernel-create-kernel-mode-binary.md).
21
+
22
+
### To set this linker option in Visual Studio
23
+
24
+
1. Open the project **Property Pages** dialog box. For more information, see [Set C++ compiler and build properties in Visual Studio](../working-with-project-properties.md).
@@ -13,11 +12,8 @@ LINK.exe links Common Object File Format (COFF) object files and libraries to cr
13
12
The following table lists options for LINK.exe. For more information about LINK, see:
14
13
15
14
-[Compiler-controlled LINK options](compiler-controlled-link-options.md)
16
-
17
15
-[LINK input files](link-input-files.md)
18
-
19
16
-[LINK output](link-output.md)
20
-
21
17
-[Reserved words](reserved-words.md)
22
18
23
19
On the command line, linker options aren't case-sensitive; for example, `/base` and `/BASE` mean the same thing. For details on how to specify each option on the command line or in Visual Studio, see the documentation for that option.
@@ -43,7 +39,7 @@ You can use the [`comment`](../../preprocessor/comment-c-cpp.md) pragma to speci
43
39
|[`/CLRIMAGETYPE`](clrimagetype-specify-type-of-clr-image.md)| Sets the type (IJW, pure, or safe) of a CLR image. |
44
40
|[`/CLRSUPPORTLASTERROR`](clrsupportlasterror-preserve-last-error-code-for-pinvoke-calls.md)| Preserves the last error code of functions that are called through the P/Invoke mechanism. |
45
41
|[`/CLRTHREADATTRIBUTE`](clrthreadattribute-set-clr-thread-attribute.md)| Specifies the threading attribute to apply to the entry point of your CLR program. |
46
-
|[`/CLRUNMANAGEDCODECHECK`](clrunmanagedcodecheck-add-suppressunmanagedcodesecurityattribute.md)| Specifies whether the linker will apply the `SuppressUnmanagedCodeSecurity` attribute to linker-generated P/Invoke stubs that call from managed code into native DLLs. |
42
+
|[`/CLRUNMANAGEDCODECHECK`](clrunmanagedcodecheck-add-suppressunmanagedcodesecurityattribute.md)| Specifies whether the linker applies the `SuppressUnmanagedCodeSecurity` attribute to linker-generated P/Invoke stubs that call from managed code into native DLLs. |
|[`/INTEGRITYCHECK`](integritycheck-require-signature-check.md)| Specifies that the module requires a signature check at load time. |
74
+
|[`/KERNEL`](link-code-for-kernel-mode.md)| Create a kernel mode binary. |
78
75
|[`/KEYCONTAINER`](keycontainer-specify-a-key-container-to-sign-an-assembly.md)| Specifies a key container to sign an assembly. |
79
76
|[`/KEYFILE`](keyfile-specify-key-or-key-pair-to-sign-an-assembly.md)| Specifies a key or key pair to sign an assembly. |
80
77
|[`/LARGEADDRESSAWARE`](largeaddressaware-handle-large-addresses.md)| Tells the compiler that the application supports addresses larger than 2 gigabytes |
Copy file name to clipboardExpand all lines: docs/overview/what-s-new-for-visual-cpp-in-visual-studio.md
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -16,11 +16,17 @@ For more information on what's new in all of Visual Studio, see [What's new in V
16
16
17
17
For a summary of new C++ features in Visual Studio 17.7, see [What’s New for C++ Developers in Visual Studio 2022 17.7](https://devblogs.microsoft.com/cppblog/whats-new-for-c-developers-in-visual-studio-2022-17-7/).
18
18
19
-
Briefly, some of the new features are: faster debugging sessions and faster project load times, step-by-step visualization of macro expansion, one-click download for Windows Subsystem for Linux (WSL), improved support for Doxygen comments, C++ Build Insights for game development, and Unreal Engine project improvements such as faster IntelliSense and syntax colorization, the ability to find all Unreal Engine Blueprint references, and more.
19
+
Briefly, some of the new features are:
20
+
* Faster debugging sessions and faster project load times
21
+
* Step-by-step visualization of macro expansion
22
+
* One-click download for Windows Subsystem for Linux (WSL)
23
+
* Improved support for Doxygen comments
24
+
* C++ Build Insights for game development
25
+
* Unreal Engine project improvements such as faster IntelliSense and syntax colorization, the ability to find all Unreal Engine Blueprint references, and more.
20
26
21
27
For a summary of new C++ features that are specific to game development, see [Unleashing the Power of Visual Studio 2022 for C++ Game Development](https://devblogs.microsoft.com/visualstudio/unleashing-the-power-of-visual-studio-2022-for-c-game-development/#:~:text=Unleashing%20the%20Power%20of%20Visual%20Studio%202022%20for,6%20Optimizing%20Build%20Times%20in%20Visual%20Studio%20)
22
28
23
-
For a summary of new features in the Visual Studio 17.7 IDE, see[Visual Studio 2022 version 17.7 Release Notes](/visualstudio/releases/2022/release-notes).
29
+
For a summary of new features in the Visual Studio 17.7 IDE, see[Visual Studio 2022 version 17.7 Release Notes](/visualstudio/releases/2022/release-notes).
24
30
25
31
## What's new for C++ in Visual Studio version 17.6
0 commit comments