<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>about optimise</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66921/about-optimise</link><description>Hi,All: 
 As my source code below: 
 that whole &amp;quot;for&amp;quot; statement would be optimised.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Nov 2020 02:05:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66921/about-optimise" /><item><title>RE: about optimise</title><link>https://devzone.nordicsemi.com/thread/278346?ContentTypeID=1</link><pubDate>Wed, 04 Nov 2020 02:05:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea2e810b-a1f2-422d-8469-052b71d95831</guid><dc:creator>wzszzxj</dc:creator><description>&lt;p&gt;Hi,Turbo:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Thank you for reply, Pls close this topic,thank you!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: about optimise</title><link>https://devzone.nordicsemi.com/thread/273978?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2020 09:31:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75a1a0a8-5722-4725-9433-a2671c5c3b97</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Not recommended. It will produce a different delay for different compiler optimization options.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: about optimise</title><link>https://devzone.nordicsemi.com/thread/273975?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2020 09:29:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fb4c19e-aec9-46ed-86ab-2a98fb78b05f</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;or try:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;   for(volatile uint32_t VAR1=0;VAR1&amp;lt;10000;VAR1++)
   {
   }&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: about optimise</title><link>https://devzone.nordicsemi.com/thread/273967?ContentTypeID=1</link><pubDate>Fri, 09 Oct 2020 09:19:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:158a6962-7560-46d2-bded-38b390728348</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Yes, the C optimizer will eliminate the empty loop.&lt;/p&gt;
&lt;p&gt;If you wanted a delay, use nrf_delay_us() or nrf_delay_ms() functions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>