<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Changing loop unrolling maximum increment bound highly increase code size. in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Changing-loop-unrolling-maximum-increment-bound-highly-increase/m-p/187658#M14200</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check how loop unrolling works. The compiler manual contains quite good examples.&amp;nbsp;&lt;A href="http://en.wikipedia.org/wiki/Loop_unwinding" rel="nofollow" target="_blank"&gt;Wikipedia&amp;nbsp;&lt;/A&gt;helps too. What loop unrolling does is to inline each iteration of the loop, giving up the loop control instructions, thus resulting in faster but usually much larger code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Dec 2011 21:53:21 GMT</pubDate>
    <dc:creator>NavidadRedivivu</dc:creator>
    <dc:date>2011-12-02T21:53:21Z</dc:date>
    <item>
      <title>Changing loop unrolling maximum increment bound highly increase code size.</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Changing-loop-unrolling-maximum-increment-bound-highly-increase/m-p/187657#M14199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to adopt the loop unrolling with simple "for" statements, with a counter increase upper bound of 18 (instead of using the default: 16) but what I see building my program is that the code size is highly increased instead of decreasing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can this happen?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i've done is just putting the command "i18" in the project settings of loop unrolling and using #PRAGMA LOOP_UNROLL before the for loop I would like to unroll.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 21:31:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Changing-loop-unrolling-maximum-increment-bound-highly-increase/m-p/187657#M14199</guid>
      <dc:creator>freerunner</dc:creator>
      <dc:date>2011-12-02T21:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Changing loop unrolling maximum increment bound highly increase code size.</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Changing-loop-unrolling-maximum-increment-bound-highly-increase/m-p/187658#M14200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check how loop unrolling works. The compiler manual contains quite good examples.&amp;nbsp;&lt;A href="http://en.wikipedia.org/wiki/Loop_unwinding" rel="nofollow" target="_blank"&gt;Wikipedia&amp;nbsp;&lt;/A&gt;helps too. What loop unrolling does is to inline each iteration of the loop, giving up the loop control instructions, thus resulting in faster but usually much larger code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 21:53:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Changing-loop-unrolling-maximum-increment-bound-highly-increase/m-p/187658#M14200</guid>
      <dc:creator>NavidadRedivivu</dc:creator>
      <dc:date>2011-12-02T21:53:21Z</dc:date>
    </item>
  </channel>
</rss>

