<?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: Why does code become twice as large in mcuxpresso in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/Why-does-code-become-twice-as-large-in-mcuxpresso/m-p/1041680#M3326</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. It looks like you have built MCUXpresso with debug and no optimisation. This greatly affects the code size. By default, MCUXpresso provides two type of build: Debug and Release. Debug builds with all debug information and no/minimal optimisation to aid debugging. Release builds include optimisation - but you can change the optimisation level to suit you needs (speed vs size) - see this FAQ for more information&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/388981"&gt;https://community.nxp.com/thread/388981&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I don't know where you got instruction size from. All Cortex-M parts (M0, M1, M3, M4, M33, M7 etc) are Thumb processors which use 16-bit instruction width. MCUXpresso builds the correct instructions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Jun 2020 08:40:56 GMT</pubDate>
    <dc:creator>converse</dc:creator>
    <dc:date>2020-06-13T08:40:56Z</dc:date>
    <item>
      <title>Why does code become twice as large in mcuxpresso</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Why-does-code-become-twice-as-large-in-mcuxpresso/m-p/1041679#M3325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am converting a working bare metal project from IAR kickstarter to MCUXpresso to take advantage of the unlimited code size.&amp;nbsp; Without making any changes to the program other than using the macros provided the code doubled in size. When&amp;nbsp;contrasting at the IAR and MCUXpresso .map files I noticed the lines on IAR are 16 bits wide and 32 bits wide in Xpresso.&amp;nbsp; The instruction size becomes just more than twice as large.&amp;nbsp; What setting needs to be changed in Xpresso?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;location &amp;amp; width&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;instruct size&amp;nbsp; (IAR)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;get_key_status&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x1a59&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x66&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Code&amp;nbsp; Gb&amp;nbsp; io.o [1]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;location &amp;amp; width&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;instruct size&amp;nbsp; (Xpresso)&lt;/P&gt;&lt;P&gt;.text.get_key_status&amp;nbsp; 0x00000728&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0xe8&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;./source/io.o&amp;nbsp; &amp;nbsp;0x00000728&amp;nbsp; get_key_status&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2020 21:24:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Why-does-code-become-twice-as-large-in-mcuxpresso/m-p/1041679#M3325</guid>
      <dc:creator>Kratz</dc:creator>
      <dc:date>2020-06-12T21:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Why does code become twice as large in mcuxpresso</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Why-does-code-become-twice-as-large-in-mcuxpresso/m-p/1041680#M3326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. It looks like you have built MCUXpresso with debug and no optimisation. This greatly affects the code size. By default, MCUXpresso provides two type of build: Debug and Release. Debug builds with all debug information and no/minimal optimisation to aid debugging. Release builds include optimisation - but you can change the optimisation level to suit you needs (speed vs size) - see this FAQ for more information&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/388981"&gt;https://community.nxp.com/thread/388981&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I don't know where you got instruction size from. All Cortex-M parts (M0, M1, M3, M4, M33, M7 etc) are Thumb processors which use 16-bit instruction width. MCUXpresso builds the correct instructions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jun 2020 08:40:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Why-does-code-become-twice-as-large-in-mcuxpresso/m-p/1041680#M3326</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2020-06-13T08:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why does code become twice as large in mcuxpresso</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Why-does-code-become-twice-as-large-in-mcuxpresso/m-p/1041681#M3327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are correct that the optimization was the issue. The code size reduced from 37K down to 28.5K. Thank you!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2020 15:20:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Why-does-code-become-twice-as-large-in-mcuxpresso/m-p/1041681#M3327</guid>
      <dc:creator>Kratz</dc:creator>
      <dc:date>2020-06-15T15:20:44Z</dc:date>
    </item>
  </channel>
</rss>

