<?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>CodeWarrior Development ToolsのトピックRe: Inter-procedural analysis (CW 10.6 DSC motor control)</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Inter-procedural-analysis-CW-10-6-DSC-motor-control/m-p/828187#M7172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We found that vector.c basically handles all the interrupt calls, so when it was cleared during optimization, all the different function called inside ISRs were also removed, which was the reason why so much flash was saved.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this means that the code can not be optimized further down. So do some of your experts have some tips how to use/save flash more smartly?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Oct 2018 08:09:00 GMT</pubDate>
    <dc:creator>fasihahmed</dc:creator>
    <dc:date>2018-10-24T08:09:00Z</dc:date>
    <item>
      <title>Inter-procedural analysis (CW 10.6 DSC motor control)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Inter-procedural-analysis-CW-10-6-DSC-motor-control/m-p/828186#M7171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Code Warrior development studio 10.6 for&amp;nbsp;DSC MC56F82478. My flash has been consumed to almost 93% so I made optimization in project settings by turning on Inter-Procedural Analysis from &lt;STRONG&gt;Off&lt;/STRONG&gt; to &lt;STRONG&gt;File.&lt;/STRONG&gt;&amp;nbsp;This reduced by flash consumption down by roughly 20%.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76175iEA37797D1BF61F55/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the code did not run, so after comparing two elf.xMAP files for both non-optimised and optimised versions, we saw that vector.txt file was left out, which is important for code to run properly.&lt;/P&gt;&lt;P&gt;So I found this file was lying in Vectors.c and I turned off IPA for that specific .c file. This made the vector.txt file to come back again but also the flash size came back to 93%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76257i0FA7E6814DF29CFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question is, is there a way where we can chose certain c files to be left out in IPA optimization which will allow me have a decreased flash size but still keep certain parts of program.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Fasih&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 07:38:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Inter-procedural-analysis-CW-10-6-DSC-motor-control/m-p/828186#M7171</guid>
      <dc:creator>fasihahmed</dc:creator>
      <dc:date>2018-10-24T07:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Inter-procedural analysis (CW 10.6 DSC motor control)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Inter-procedural-analysis-CW-10-6-DSC-motor-control/m-p/828187#M7172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We found that vector.c basically handles all the interrupt calls, so when it was cleared during optimization, all the different function called inside ISRs were also removed, which was the reason why so much flash was saved.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this means that the code can not be optimized further down. So do some of your experts have some tips how to use/save flash more smartly?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 08:09:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Inter-procedural-analysis-CW-10-6-DSC-motor-control/m-p/828187#M7172</guid>
      <dc:creator>fasihahmed</dc:creator>
      <dc:date>2018-10-24T08:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Inter-procedural analysis (CW 10.6 DSC motor control)</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Inter-procedural-analysis-CW-10-6-DSC-motor-control/m-p/828188#M7173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fasih,&lt;/P&gt;&lt;P&gt;&amp;nbsp;-ipa is only available in commandline mode.&lt;/P&gt;&lt;P&gt;To reduce code size, We normally use size optimization .&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76773iA479CA5ACC0B2140/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Jennie Zhang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 04:25:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Inter-procedural-analysis-CW-10-6-DSC-motor-control/m-p/828188#M7173</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2018-11-20T04:25:03Z</dc:date>
    </item>
  </channel>
</rss>

