<?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[Frage zu If Anweisung?]]></title><description><![CDATA[<p>Werden folgende Afragen A und B vom Compiler gleich in Assamble übersetzt?</p>
<pre><code class="language-cpp">bool boIF=true;
double wert;

// (A)
if(boIF)
  wert= 100;
else
  wert= 200;

// (B)
wert= boif ? 100 : 200;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/194193/frage-zu-if-anweisung</link><generator>RSS for Node</generator><lastBuildDate>Mon, 28 Sep 2026 09:43:23 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/194193.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 04 Oct 2007 08:22:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Frage zu If Anweisung? on Thu, 04 Oct 2007 08:22:06 GMT]]></title><description><![CDATA[<p>Werden folgende Afragen A und B vom Compiler gleich in Assamble übersetzt?</p>
<pre><code class="language-cpp">bool boIF=true;
double wert;

// (A)
if(boIF)
  wert= 100;
else
  wert= 200;

// (B)
wert= boif ? 100 : 200;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1377608</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1377608</guid><dc:creator><![CDATA[BorisDieKlinge]]></dc:creator><pubDate>Thu, 04 Oct 2007 08:22:06 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu If Anweisung? on Thu, 04 Oct 2007 08:30:58 GMT]]></title><description><![CDATA[<p>Ob der Compiler daraus wirklich den selben Maschinen-Code produziert, hängt vom System ab (schau dir den Output an, dann siehst du es). Auf jeden Fall produziert es Codes mit identischem Verhalten (davon abgesehen, daß die zweite Variante wohl einen &quot;unknown identifier&quot; Fehler liefern würde ;)).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1377613</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1377613</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 04 Oct 2007 08:30:58 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu If Anweisung? on Thu, 04 Oct 2007 08:47:51 GMT]]></title><description><![CDATA[<p>abgesehen davon gibts keine performance unterschiede odeR?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1377632</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1377632</guid><dc:creator><![CDATA[BorisDieKlinge]]></dc:creator><pubDate>Thu, 04 Oct 2007 08:47:51 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu If Anweisung? on Thu, 04 Oct 2007 08:50:03 GMT]]></title><description><![CDATA[<p>BorisDieKlinge schrieb:</p>
<blockquote>
<p>abgesehen davon gibts keine performance unterschiede odeR?</p>
</blockquote>
<p>Nein, dürfte es eigentlich nicht geben; und wenn dann nur _so_ minimal, dass es egal ist <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1377637</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1377637</guid><dc:creator><![CDATA[Badestrand]]></dc:creator><pubDate>Thu, 04 Oct 2007 08:50:03 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu If Anweisung? on Thu, 04 Oct 2007 08:51:46 GMT]]></title><description><![CDATA[<p>abgesehen davon sollte man eh nich so low level optimieren. Wenns der gleiche code ist, gibts keine unterschiede. Und ich denke gcc und vc machen daraus den gleichen code.</p>
<p>Allgemein ist Performance mittlerweile eh nicht mehr soo wichtig, weil die rechner einfach übelst schnell sind. Außer man macht wirklich performancekritische dinge, zB spiele oder so. aber in einer GUI im eventhandler für einen buttonklick am if zu optimieren is schwachsinnig.</p>
<p>erst profilen, dann siehst du wo wirklich was langsam geht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1377638</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1377638</guid><dc:creator><![CDATA[Maxi]]></dc:creator><pubDate>Thu, 04 Oct 2007 08:51:46 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu If Anweisung? on Thu, 04 Oct 2007 08:58:14 GMT]]></title><description><![CDATA[<p>CStoll schrieb:</p>
<blockquote>
<p>Ob der Compiler daraus wirklich den selben Maschinen-Code produziert, hängt vom System ab (schau dir den Output an, dann siehst du es).</p>
</blockquote>
<p>Nitpick: Nicht vom System, vom Compiler.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1377642</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1377642</guid><dc:creator><![CDATA[Bashar]]></dc:creator><pubDate>Thu, 04 Oct 2007 08:58:14 GMT</pubDate></item></channel></rss>