Skip to content

Commit 273d6ad

Browse files
authored
Revise hotpatch documentation and update date
Some acrolinx and other misc fixes.
1 parent 7421eb3 commit 273d6ad

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed
Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
---
2-
description: "Learn more about: /hotpatch (Create Hotpatchable Image)"
3-
title: "/hotpatch (Create Hotpatchable Image)"
4-
ms.date: "12/7/2021"
2+
description: "Learn more about: /hotpatch (Create hotpatchable image)"
3+
title: "/hotpatch (Create hotpatchable image)"
4+
ms.date: "9/4/2025"
55
f1_keywords: ["/hotpatch", "VC.Project.VCCLCompilerTool.CreateHotpatchableImage"]
6-
helpviewer_keywords: ["hot patching", "-hotpatch compiler option [C++]", "/hotpatch compiler option [C++]", "hotpatching"]
7-
ms.assetid: aad539b6-c053-4c78-8682-853d98327798
6+
helpviewer_keywords: ["hot patching", "hotpatching", "-hotpatch compiler option [C++]", "/hotpatch compiler option [C++]"]
87
---
9-
# /hotpatch (Create Hotpatchable Image)
8+
# /hotpatch (Create hotpatchable image)
109

11-
Prepares an image for hot patching.
10+
Prepares an image for hotpatching.
1211

1312
## Syntax
1413

@@ -21,18 +20,17 @@ Prepares an image for hot patching.
2120
2221
## Remarks
2322

24-
When `/hotpatch` is used in compilation, the compiler ensures that the first instruction of each function is at least 2 bytes long, and no jump within the function goes to the first instruction. These conditions are required for hot patching.
23+
When `/hotpatch` is used during compilation, the compiler ensures that the first instruction of each function is at least 2 bytes long and that no jump within the function goes to the first instruction. These conditions are required for hotpatching.
2524

26-
To complete the preparation for making an image hotpatchable, after you use `/hotpatch` to compile, you must use [`/functionpadmin`](functionpadmin-create-hotpatchable-image.md) (Create Hotpatchable Image)]to link. When you compile and link an image by using one invocation of cl.exe, `/hotpatch` implies `/functionpadmin`.
25+
To complete the preparation for making an image hotpatchable, after you compile with `/hotpatch`, use [`/functionpadmin`](functionpadmin-create-hotpatchable-image.md) to link. When you compile and link an image using one invocation of `cl.exe`, `/hotpatch` implies `/functionpadmin`.
2726

2827
> [!TIP]
2928
> Arm64 and x64 architectures are always treated as hotpatchable. But you must still link by using `/functionpadmin` to create hotpatchable images for them.
29+
3030
### To set this compiler option in the Visual Studio development environment
3131

3232
1. Open the project's **Property Pages** dialog box. For details, see [Set C++ compiler and build properties in Visual Studio](../working-with-project-properties.md).
33-
3433
1. Select the **Configuration Properties** > **C/C++** > **Command Line** property page.
35-
3634
1. Add the compiler option to the **Additional Options** box.
3735

3836
### To set this compiler option programmatically
@@ -41,5 +39,5 @@ To complete the preparation for making an image hotpatchable, after you use `/ho
4139

4240
## See also
4341

44-
[MSVC Compiler Options](compiler-options.md)<br/>
42+
[MSVC Compiler Options](compiler-options.md)\
4543
[MSVC Compiler Command-Line Syntax](compiler-command-line-syntax.md)

0 commit comments

Comments
 (0)