Show: Object Pascal C++
Display Preferences

register (C++)

From Appmethod Topics
Jump to: navigation, search

Go Up to Keywords, Alphabetical Listing Index


Category

Storage Class Specifiers

Syntax

register <data definition> ;

Description

Use the register storage class specifier to store the variable being declared in a CPU register (if possible), to optimize access and reduce code.

Note: The compiler can ignore requests for register allocation. Register allocation is based on the compiler's analysis of how a variable is used.
Personal tools
In other languages