<?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: Warning: C12056 in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Warning-C12056/m-p/217017#M8567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;may the warning be risin by the math.h?&lt;/P&gt;&lt;P&gt;or the big size of my structure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Including math.h itself does not cause it, also the size of structures does not matter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did explain the setup for this warning for example here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.freescale.com/message/66191#66191" title="https://community.freescale.com/message/66191#66191"&gt;https://community.freescale.com/message/66191#66191&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The warning is more likely in huge functions and when some patterns are repeated multiple times. Using floating point increases the chances of this as even simple C statements can generate patterns big enough to optimize.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also note that C12056 is not an error, "just" informs about one case of problematic debug information. Use -onf to switch the optimization of, but this will increase the code size (depending on the code possibly by quite a bit).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Aug 2010 21:33:09 GMT</pubDate>
    <dc:creator>CompilerGuru</dc:creator>
    <dc:date>2010-08-06T21:33:09Z</dc:date>
    <item>
      <title>Warning: C12056</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Warning-C12056/m-p/217016#M8566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i get more than one time the compiler warning at function returns:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Warning: C12056: SP debug info incorrect because of optimization or inline assembler&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Codewarrior 4.7 with compiler options -Cf -CPUHCS12 -Mb -TD4LD4LLD4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;uc: 9S12DP512DGV&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i got a really big structure with 100 elements (ram address 0x874 - 0xe51) and incresed the stack to 512 byte, which solved some ram messup &lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif"&gt;&lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i think i saw the warnings the first time i included math.h but im not sure about that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fact is that im not using any inline assembly where the warnings occour.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;may the warning be risin by the math.h?&lt;/P&gt;&lt;P&gt;or the big size of my structure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;grtz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Aug 2010 19:17:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Warning-C12056/m-p/217016#M8566</guid>
      <dc:creator>HarryHirn</dc:creator>
      <dc:date>2010-08-06T19:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Warning: C12056</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Warning-C12056/m-p/217017#M8567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;may the warning be risin by the math.h?&lt;/P&gt;&lt;P&gt;or the big size of my structure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Including math.h itself does not cause it, also the size of structures does not matter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did explain the setup for this warning for example here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.freescale.com/message/66191#66191" title="https://community.freescale.com/message/66191#66191"&gt;https://community.freescale.com/message/66191#66191&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The warning is more likely in huge functions and when some patterns are repeated multiple times. Using floating point increases the chances of this as even simple C statements can generate patterns big enough to optimize.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also note that C12056 is not an error, "just" informs about one case of problematic debug information. Use -onf to switch the optimization of, but this will increase the code size (depending on the code possibly by quite a bit).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Aug 2010 21:33:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Warning-C12056/m-p/217017#M8567</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2010-08-06T21:33:09Z</dc:date>
    </item>
  </channel>
</rss>

