Developer Guide and Reference

Contents

qopt-jump-tables, Qopt-jump-tables

Enables or disables generation of jump tables for switch statements.

Syntax

Linux and macOS:
-qopt-jump-tables
=
keyword
-qno-opt-jump-tables
Windows:
/Qopt-jump-tables
:
keyword
/Qopt-jump-tables-
Arguments
keyword
Is the instruction for generating jump tables. Possible values are:
never
Tells the compiler to never generate jump tables. All switch statements are implemented as chains of if-then-elses. This is the same as specifying
-qno-opt-jump-tables
(Linux* and
macOS*
) or
/Qopt-jump-tables-
(Windows*).
default
The compiler uses default heuristics to determine when to generate jump tables.
large
Tells the compiler to generate jump tables up to a certain pre-defined size (64K entries).
n
Must be an integer. Tells the compiler to generate jump tables up to
n
entries in size.
Default
-qopt-jump-tables=default
or
/Qopt-jump-tables:default
The compiler uses default heuristics to determine when to generate jump tables for switch statements.
Description
This option enables or disables generation of jump tables for switch statements. When the option is enabled, it may improve performance for programs with large switch statements.
Alternate Options
None

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804