<?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: Compiler macro for PPC core identification  in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Compiler-macro-for-PPC-core-identification/m-p/470253#M12337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fiona,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. It is exactly as you described it. The editor shows the code block as uncompiled and I did not check to see if it actually works.&lt;/P&gt;&lt;P&gt;It was working afterall&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Feb 2016 12:45:44 GMT</pubDate>
    <dc:creator>lowpy</dc:creator>
    <dc:date>2016-02-02T12:45:44Z</dc:date>
    <item>
      <title>Compiler macro for PPC core identification</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Compiler-macro-for-PPC-core-identification/m-p/470251#M12335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using CodeWarrior for MCU V10.5. with the MPC5606B starterTrak and the PowerPC compiler.&lt;/P&gt;&lt;P&gt;I ran into a problem while trying to add platform based settings to a header file depending on the coretype specified by compiler macros. The PowerPC compiler documentation and CW help states that the compiler will define a macro depending on the employed platform. There is also a nice table in the CW help showing macros for all PPC cores.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For MPC5606B the selected CPU type in the project properties is &lt;EM&gt;zen &lt;/EM&gt;so I would expect that the corresponding macro (__PPCZen__) is defined but it does not seem to be. I changed the cpu to generic expecting to have &lt;SPAN class="resultofText"&gt;__&lt;SPAN class="resultofText"&gt;PPCGENERIC&lt;/SPAN&gt;__&amp;nbsp; defined but it was not. I also tried to test for __PPC56x__ and several other macros but without success.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why aren't these macros defined? Does the compiler need an additional option to be set in order to generate these macros? Any help in getting this to work would be appreciated.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2016 21:23:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Compiler-macro-for-PPC-core-identification/m-p/470251#M12335</guid>
      <dc:creator>lowpy</dc:creator>
      <dc:date>2016-01-27T21:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler macro for PPC core identification</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Compiler-macro-for-PPC-core-identification/m-p/470252#M12336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello lowpy &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;Please try to use __PPC_ZEN__&amp;nbsp; and __PPC_GENERIC__. It worked on my side for the generic architecture. It is the problem of editor to display the code&amp;nbsp; in gray.&amp;nbsp; The screenshot shows that the&amp;nbsp; __PPC_ZEN__&amp;nbsp; does work for MPC5606B project. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="macro.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/52120i9D44F83847726D65/image-size/large?v=v2&amp;amp;px=999" role="button" title="macro.png" alt="macro.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;Also please note that the architecture marked in properties should match exactly with the macro name (case sensitive).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Fiona Kuang&lt;/P&gt;&lt;P&gt;Technical Information &amp;amp; Commercial Support&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 12:17:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Compiler-macro-for-PPC-core-identification/m-p/470252#M12336</guid>
      <dc:creator>TICS_Fiona</dc:creator>
      <dc:date>2016-02-02T12:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler macro for PPC core identification</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Compiler-macro-for-PPC-core-identification/m-p/470253#M12337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Fiona,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. It is exactly as you described it. The editor shows the code block as uncompiled and I did not check to see if it actually works.&lt;/P&gt;&lt;P&gt;It was working afterall&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 12:45:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Compiler-macro-for-PPC-core-identification/m-p/470253#M12337</guid>
      <dc:creator>lowpy</dc:creator>
      <dc:date>2016-02-02T12:45:44Z</dc:date>
    </item>
  </channel>
</rss>

