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
Copy file name to clipboardExpand all lines: docs/build/reference/compiler-options-listed-by-category.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,8 @@
1
1
---
2
2
title: "Compiler Options Listed by Category"
3
3
description: "Reference listing by category of the Microsoft C/C++ compiler command-line options."
4
-
ms.date: 11/07/2022
4
+
ms.date: 06/02/2023
5
5
helpviewer_keywords: ["compiler options, C++"]
6
-
ms.assetid: c4750dcf-dba0-4229-99b6-45cdecc11729
7
6
---
8
7
# Compiler options listed by category
9
8
@@ -76,6 +75,7 @@ This article contains a categorical list of compiler options. For an alphabetica
76
75
|[`/GZ`](gz-enable-stack-frame-run-time-error-checking.md)| Deprecated. Enables fast checks. (Same as [`/RTC1`](rtc-run-time-error-checks.md)) |
77
76
|[`/homeparams`](homeparams-copy-register-parameters-to-stack.md)| Forces parameters passed in registers to be written to their locations on the stack upon function entry. This compiler option is only for the x64 compilers (native and cross compile). |
78
77
|[`/hotpatch`](hotpatch-create-hotpatchable-image.md)| Creates a hotpatchable image. |
78
+
|[`/jumptablerdata`](jump-table-rdata.md)| Put switch case statement jump tables in the `.rdata` section. |
79
79
|[`/Qfast_transcendentals`](qfast-transcendentals-force-fast-transcendentals.md)| Generates fast transcendentals. |
80
80
|[`/QIfist`](qifist-suppress-ftol.md)| Deprecated. Suppresses the call of the helper function `_ftol` when a conversion from a floating-point type to an integral type is required. (x86 only) |
# /jumptablerdata (put switch case jump tables in `.rdata`)
9
+
10
+
Puts the generated switch case jump tables in the `.rdata` section instead of alongside code in the `.text` section.
11
+
12
+
## Syntax
13
+
14
+
```cpp
15
+
/jumptablerdata
16
+
```
17
+
18
+
## Remarks
19
+
20
+
Putting jump tables generated for switch case statements in the `.rdata` section prevents the jump table from being loaded into both the instruction cache (iCache) and data cache (dCache), potentially increasing performance. The `.rdata` section is where const initialized data is stored.
21
+
22
+
> [!IMPORTANT]
23
+
> This flag only applies to x64 code. This flag was introduced in Visual Studio 17.7.
24
+
25
+
### To set this compiler option in the Visual Studio development environment
26
+
27
+
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).
0 commit comments