opt-jump-tables, Qopt-jump-tables

Enables or disables generation of jump tables for switch statements.

IDE Equivalent

None

Architectures

IA-32, Intel® 64 architectures

Syntax

Linux and Mac OS X:

-opt-jump-tables=keyword

-no-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 -no-opt-jump-tables (Linux and Mac OS) 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 ton entries in size.

Default

-opt-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


Submit feedback on this help topic

Copyright © 1996-2010, Intel Corporation. All rights reserved.