<?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: A compile problem in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/A-compile-problem/m-p/257163#M9736</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;regarding this warning, here is the explanation given by the manual:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C12056: &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;SP&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;debug&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;info&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;incorrect&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;because&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;of&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;optimization&lt;/STRONG&gt;&lt;/SPAN&gt; or inline assembler Description The compiler investigates the generated code to detect the current &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;SP&lt;/STRONG&gt;&lt;/SPAN&gt; value for every instruction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; During this process, he detects that two different control flows generate different &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;SP&lt;/STRONG&gt;&lt;/SPAN&gt; values for a single instruction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; This situation may arise &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;because&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;of&lt;/STRONG&gt;&lt;/SPAN&gt; different situations: – inline assembler: In inline assembler code, it is legal to have this situation as long as the stack is correct at the end &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;of&lt;/STRONG&gt;&lt;/SPAN&gt; the inline assembler block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; – optimization: Especially &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;because&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;of&lt;/STRONG&gt;&lt;/SPAN&gt; the common code &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;optimization&lt;/STRONG&gt;&lt;/SPAN&gt; -Of/-Onf there are situations where this occurs in correct code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; It is impossible to generate correct &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;debug&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;info&lt;/STRONG&gt;&lt;/SPAN&gt; for this &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;optimization&lt;/STRONG&gt;&lt;/SPAN&gt; in some cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The debugger may show local variables and the call chain &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;incorrect&lt;/STRONG&gt;&lt;/SPAN&gt; for some parts in a function, for which this message occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; But this message does not mean that the code generated is wrong in any sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Previous versions &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;of&lt;/STRONG&gt;&lt;/SPAN&gt; the compiler did generate this warning in other situations, for which this version generates correct &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;debug&lt;/STRONG&gt;&lt;/SPAN&gt; info.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 May 2013 02:19:04 GMT</pubDate>
    <dc:creator>TICS_Fiona</dc:creator>
    <dc:date>2013-05-27T02:19:04Z</dc:date>
    <item>
      <title>A compile problem</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/A-compile-problem/m-p/257162#M9735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;When I compile my code,a warning will come. The warning is "SP debug info incorrect because of optimization or inline assembler". How can I deal with it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 May 2013 01:47:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/A-compile-problem/m-p/257162#M9735</guid>
      <dc:creator>user_112139582</dc:creator>
      <dc:date>2013-05-26T01:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: A compile problem</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/A-compile-problem/m-p/257163#M9736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;regarding this warning, here is the explanation given by the manual:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C12056: &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;SP&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;debug&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;info&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;incorrect&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;because&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;of&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;optimization&lt;/STRONG&gt;&lt;/SPAN&gt; or inline assembler Description The compiler investigates the generated code to detect the current &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;SP&lt;/STRONG&gt;&lt;/SPAN&gt; value for every instruction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; During this process, he detects that two different control flows generate different &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;SP&lt;/STRONG&gt;&lt;/SPAN&gt; values for a single instruction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; This situation may arise &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;because&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;of&lt;/STRONG&gt;&lt;/SPAN&gt; different situations: – inline assembler: In inline assembler code, it is legal to have this situation as long as the stack is correct at the end &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;of&lt;/STRONG&gt;&lt;/SPAN&gt; the inline assembler block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; – optimization: Especially &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;because&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;of&lt;/STRONG&gt;&lt;/SPAN&gt; the common code &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;optimization&lt;/STRONG&gt;&lt;/SPAN&gt; -Of/-Onf there are situations where this occurs in correct code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; It is impossible to generate correct &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;debug&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;info&lt;/STRONG&gt;&lt;/SPAN&gt; for this &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;optimization&lt;/STRONG&gt;&lt;/SPAN&gt; in some cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The debugger may show local variables and the call chain &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;incorrect&lt;/STRONG&gt;&lt;/SPAN&gt; for some parts in a function, for which this message occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; But this message does not mean that the code generated is wrong in any sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Previous versions &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;of&lt;/STRONG&gt;&lt;/SPAN&gt; the compiler did generate this warning in other situations, for which this version generates correct &lt;SPAN class="&amp;amp;quothighlight&amp;quot;"&gt;&lt;STRONG&gt;debug&lt;/STRONG&gt;&lt;/SPAN&gt; info.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2013 02:19:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/A-compile-problem/m-p/257163#M9736</guid>
      <dc:creator>TICS_Fiona</dc:creator>
      <dc:date>2013-05-27T02:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: A compile problem</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/A-compile-problem/m-p/257164#M9737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Were these hints helpful? Please don't forget to keep us posted! &lt;/SPAN&gt;:smileywink:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards, &lt;/P&gt;&lt;P&gt;Monica.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2013 20:42:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/A-compile-problem/m-p/257164#M9737</guid>
      <dc:creator>Monica</dc:creator>
      <dc:date>2013-06-13T20:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: A compile problem</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/A-compile-problem/m-p/257165#M9738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello, if you can't solve your problem by the suggestion, please post your project here. or create a SR and send the project to Freescale support. thus we can check it directly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 10:00:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/A-compile-problem/m-p/257165#M9738</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2013-06-17T10:00:11Z</dc:date>
    </item>
  </channel>
</rss>

