<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Ist das keyword &amp;quot;register&amp;quot; Teil des C++ Standards oder compilerspezifisch?]]></title><description><![CDATA[<p>Und macht es heute bei modernen Compilern überhaupt noch Sinn?</p>
<p>Beispiel:</p>
<p>register int i;</p>
<p>Bedeutet:<br />
i wird, sofern der compiler dem register Keyword folgt, im Register der CPU gehalten</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/296716/ist-das-keyword-quot-register-quot-teil-des-c-standards-oder-compilerspezifisch</link><generator>RSS for Node</generator><lastBuildDate>Fri, 14 Aug 2026 19:32:36 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/296716.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 10 Dec 2011 19:06:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ist das keyword &amp;quot;register&amp;quot; Teil des C++ Standards oder compilerspezifisch? on Sat, 10 Dec 2011 19:06:25 GMT]]></title><description><![CDATA[<p>Und macht es heute bei modernen Compilern überhaupt noch Sinn?</p>
<p>Beispiel:</p>
<p>register int i;</p>
<p>Bedeutet:<br />
i wird, sofern der compiler dem register Keyword folgt, im Register der CPU gehalten</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2155466</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2155466</guid><dc:creator><![CDATA[Werweißdas?]]></dc:creator><pubDate>Sat, 10 Dec 2011 19:06:25 GMT</pubDate></item><item><title><![CDATA[Reply to Ist das keyword &amp;quot;register&amp;quot; Teil des C++ Standards oder compilerspezifisch? on Sat, 10 Dec 2011 19:10:15 GMT]]></title><description><![CDATA[<p>Ich glaub das kann jeder Compiler ignorieren, weil er sowieso besser weiß was in register soll.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2155469</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2155469</guid><dc:creator><![CDATA[Stansford]]></dc:creator><pubDate>Sat, 10 Dec 2011 19:10:15 GMT</pubDate></item><item><title><![CDATA[Reply to Ist das keyword &amp;quot;register&amp;quot; Teil des C++ Standards oder compilerspezifisch? on Sat, 10 Dec 2011 19:16:00 GMT]]></title><description><![CDATA[<p>Das ist vom Standard garantiert, dass es das Schlüsselwort gibt. Was es macht, ist aber vielleicht nicht das was du denkst:</p>
<p>C++ Standard schrieb:</p>
<blockquote>
<p>A <code>register</code> specifier has the same semantics as an <code>auto</code> specifier together with a hint to the implementation that the<br />
object so declared will be heavily used. [ Note: the hint can be ignored and in most implementations it will be ignored if<br />
the address of the object is taken. — end note ]</p>
</blockquote>
<p>edit: Das ist aus dem alten Standard, wo <code>auto</code> noch eine andere Bedeutung hatte. Im neuen Standard steht daher nur, dass ein register-Objekt automatische <em>storage duration</em> hat und dass man diesen Effekt auch hätte, wenn man gar nichts schreibt. Auserdem ist die Benutzung als Compilerhinweis <em>deprecated</em>.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2155472</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2155472</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Sat, 10 Dec 2011 19:16:00 GMT</pubDate></item><item><title><![CDATA[Reply to Ist das keyword &amp;quot;register&amp;quot; Teil des C++ Standards oder compilerspezifisch? on Sat, 10 Dec 2011 19:44:56 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>Das ist vom Standard garantiert, dass es das Schlüsselwort gibt. Was es macht, ist aber vielleicht nicht das was du denkst:</p>
<p>C++ Standard schrieb:</p>
<blockquote>
<p>A <code>register</code> specifier has the same semantics as an <code>auto</code> specifier together with a hint to the implementation that the<br />
object so declared will be heavily used. [ Note: the hint can be ignored and in most implementations it will be ignored if<br />
the address of the object is taken. — end note ]</p>
</blockquote>
<p>edit: Das ist aus dem alten Standard, wo <code>auto</code> noch eine andere Bedeutung hatte. Im neuen Standard steht daher nur, dass ein register-Objekt automatische <em>storage duration</em> hat und dass man diesen Effekt auch hätte, wenn man gar nichts schreibt. Auserdem ist die Benutzung als Compilerhinweis <em>deprecated</em>.</p>
</blockquote>
<p>Thx, dann lasse ich es in Zukunft weg.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2155487</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2155487</guid><dc:creator><![CDATA[Werweißdas?]]></dc:creator><pubDate>Sat, 10 Dec 2011 19:44:56 GMT</pubDate></item><item><title><![CDATA[Reply to Ist das keyword &amp;quot;register&amp;quot; Teil des C++ Standards oder compilerspezifisch? on Sat, 10 Dec 2011 20:35:31 GMT]]></title><description><![CDATA[<p>Im neuen Standard(C++1) heist es:</p>
<blockquote>
<p>2<br />
The register specifier shall be applied only to names of variables declared in a block (6.3) or to function parameters (8.4). It specifies that the named variable has automatic storage duration (3.7.3). A variable declared without a storage class-specifier at block scope or declared as a function parameter has automatic storage duration by default.</p>
<p>3<br />
A register specifier is a hint to the implementation that the variable so declared will be heavily used. [Note:The hint can be ignored and in most implementations it will be ignored if the address of the variable is taken. This use is deprecated (see D.2). — end note]</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/2155505</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2155505</guid><dc:creator><![CDATA[Redhat]]></dc:creator><pubDate>Sat, 10 Dec 2011 20:35:31 GMT</pubDate></item></channel></rss>