<?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>Classic/Legacy CodeWarriorのトピックMissing Predefined C Macros</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Missing-Predefined-C-Macros/m-p/181527#M4186</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to work around some version specific bugs in the HCS08 compiler.&amp;nbsp; That is, some bugs that were fixed after a certain version.&amp;nbsp; I want to implement some work-arounds but only on the earlier compiler versions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was intending to use the __CWCC__&amp;nbsp; macro that is meant to have the version number of the compiler.&amp;nbsp; Unfortunately this macro appears to be only defined for the Coldfire compiler. (Is this a bug?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone suggest another method of determining the compiler version?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 May 2009 19:38:27 GMT</pubDate>
    <dc:creator>pgo</dc:creator>
    <dc:date>2009-05-15T19:38:27Z</dc:date>
    <item>
      <title>Missing Predefined C Macros</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Missing-Predefined-C-Macros/m-p/181527#M4186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to work around some version specific bugs in the HCS08 compiler.&amp;nbsp; That is, some bugs that were fixed after a certain version.&amp;nbsp; I want to implement some work-arounds but only on the earlier compiler versions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was intending to use the __CWCC__&amp;nbsp; macro that is meant to have the version number of the compiler.&amp;nbsp; Unfortunately this macro appears to be only defined for the Coldfire compiler. (Is this a bug?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone suggest another method of determining the compiler version?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 19:38:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Missing-Predefined-C-Macros/m-p/181527#M4186</guid>
      <dc:creator>pgo</dc:creator>
      <dc:date>2009-05-15T19:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Predefined C Macros</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Missing-Predefined-C-Macros/m-p/181528#M4187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello pgo,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HC(s)08 compiler generates several macros you can use for this purposes e.g.:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;__VERSION__ 5029&lt;/P&gt;&lt;P&gt;__VERSION_STR__ "V-5.0.29"&lt;/P&gt;&lt;P&gt;__MWERKS__ 1&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For complete list of compiler generated macros you can add option -Ldf=predef.h into Compiler Arguments (ALT+F7 -&amp;gt; "Compiler for HC08" -&amp;gt; "Command Line Arguments") After make the file predef.h includes all these macros. I'd suggest you to see the "Compiler_HC08.pdf", section "Compiler Predefined Macros" for more info.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stanish&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 20:19:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Missing-Predefined-C-Macros/m-p/181528#M4187</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2009-05-15T20:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Missing Predefined C Macros</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Missing-Predefined-C-Macros/m-p/181529#M4188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stanish,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did a search on the help system but it didn't show these defines in the section describing the other defines.&amp;nbsp; The do appear in the HCS08 specific section!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Codewarrior documentation is very fragmented!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 May 2009 13:56:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Missing-Predefined-C-Macros/m-p/181529#M4188</guid>
      <dc:creator>pgo</dc:creator>
      <dc:date>2009-05-16T13:56:27Z</dc:date>
    </item>
  </channel>
</rss>

