Register Storage Specifier In C

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • priya.sharma
    Senior Member
    • Aug 2016
    • 105

    Register Storage Specifier In C

    When should we use the register storage specifier?
  • Swati walia
    Senior Member
    • Sep 2016
    • 108

    #2
    The register storage cl*** specifier indicates to the compiler that the object should be stored in a machine register. The register storage cl*** specifier is typically specified for heavily used variables, such as a loop control variable, in the hopes of enhancing performance by minimizing access time. However, the compiler is not required to honor this request. Because of the limited size and number of registers available on most systems, few variables can actually be put in registers. If the compiler does not allocate a machine register for a register object, the object is treated as having the storage cl*** specifier auto.

    Comment

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎