An Entity of Type: Thing, from Named Graph: http://dbpedia.org, within Data Space: dbpedia.org

In the C programming language, <b>register</b> is a reserved word (or keyword), type modifier, storage class, and hint. The <b>register</b> keyword was deprecated in C++, until it became reserved and unused in C++17. It suggests that the compiler stores a declared variable in a CPU register (or some other faster location) instead of in random-access memory. If possible depending on the type of CPU and complexity of the program code, it will optimize access to that variable and hence improve the execution time of a program. In C (but not C++ where the keyword is essentially ignored) the location of a variable declared with register cannot be accessed, but the <a href="/wiki/Sizeof" title="Sizeof">sizeof</a> operator can be applied. Aside from this limitation, register is essentially meaning

Property Value
dbo:abstract
  • In the C programming language, <b>register</b> is a reserved word (or keyword), type modifier, storage class, and hint. The <b>register</b> keyword was deprecated in C++, until it became reserved and unused in C++17. It suggests that the compiler stores a declared variable in a CPU register (or some other faster location) instead of in random-access memory. If possible depending on the type of CPU and complexity of the program code, it will optimize access to that variable and hence improve the execution time of a program. In C (but not C++ where the keyword is essentially ignored) the location of a variable declared with register cannot be accessed, but the <a href="/wiki/Sizeof" title="Sizeof">sizeof</a> operator can be applied. Aside from this limitation, register is essentially meaningless in modern compilers due to optimization which will place variables in a register if appropriate regardless of whether the hint is given. For programming of embedded systems register may still be significant; for example the Microchip MPLAB XC32 compiler allows the programmer to specify a particular register with the keyword; however, this is discouraged in favor of the compiler's optimizations. When used, register is typically for loop counters, or possibly for other very frequently used variables in the code. (en)
dbo:wikiPageID
  • 54502205 (xsd:integer)
dbo:wikiPageLength
  • 2260 (xsd:nonNegativeInteger)
dbo:wikiPageRevisionID
  • 1107590804 (xsd:integer)
dbo:wikiPageWikiLink
dbp:wikiPageUsesTemplate
dcterms:subject
rdfs:comment
  • In the C programming language, <b>register</b> is a reserved word (or keyword), type modifier, storage class, and hint. The <b>register</b> keyword was deprecated in C++, until it became reserved and unused in C++17. It suggests that the compiler stores a declared variable in a CPU register (or some other faster location) instead of in random-access memory. If possible depending on the type of CPU and complexity of the program code, it will optimize access to that variable and hence improve the execution time of a program. In C (but not C++ where the keyword is essentially ignored) the location of a variable declared with register cannot be accessed, but the <a href="/wiki/Sizeof" title="Sizeof">sizeof</a> operator can be applied. Aside from this limitation, register is essentially meaning (en)
rdfs:label
  • Register (keyword) (en)
owl:sameAs
prov:wasDerivedFrom
foaf:isPrimaryTopicOf
is dbo:wikiPageRedirects of
is dbo:wikiPageWikiLink of
is foaf:primaryTopic of
Powered by OpenLink Virtuoso    This material is Open Knowledge     W3C Semantic Web Technology     This material is Open Knowledge    Valid XHTML + RDFa
This content was extracted from Wikipedia and is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License