<?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 for MCUのトピックCW10 Kinetis inline assembly</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW10-Kinetis-inline-assembly/m-p/190611#M6852</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;Trying to port a project from IAR to Codewarrior v10 for Kinetis, I have a comilation error when calling inline assembly.&lt;/P&gt;&lt;P&gt;Example: trying to compile&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'courier new,courier';"&gt;foo = __REV(bar);&amp;nbsp;&amp;nbsp;&amp;nbsp; /* OK with IAR compiler&amp;nbsp;&amp;nbsp; */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The error is&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'courier new,courier';"&gt;Undefined : "__REV"&amp;nbsp; /* Error with CW compiler */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the correct syntax for calling assembly instructions or functions?&lt;/P&gt;&lt;P&gt;Should I include a header like &lt;SPAN style="font-family: 'courier new,courier';"&gt;"intrinsics.h"&lt;/SPAN&gt; and where to find it for Kinetis K60?&lt;/P&gt;&lt;P&gt;Is there a document where I could find the list of all existing inline instructions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Mar 2011 21:55:13 GMT</pubDate>
    <dc:creator>NoeSerres</dc:creator>
    <dc:date>2011-03-11T21:55:13Z</dc:date>
    <item>
      <title>CW10 Kinetis inline assembly</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW10-Kinetis-inline-assembly/m-p/190611#M6852</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;Trying to port a project from IAR to Codewarrior v10 for Kinetis, I have a comilation error when calling inline assembly.&lt;/P&gt;&lt;P&gt;Example: trying to compile&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'courier new,courier';"&gt;foo = __REV(bar);&amp;nbsp;&amp;nbsp;&amp;nbsp; /* OK with IAR compiler&amp;nbsp;&amp;nbsp; */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The error is&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'courier new,courier';"&gt;Undefined : "__REV"&amp;nbsp; /* Error with CW compiler */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the correct syntax for calling assembly instructions or functions?&lt;/P&gt;&lt;P&gt;Should I include a header like &lt;SPAN style="font-family: 'courier new,courier';"&gt;"intrinsics.h"&lt;/SPAN&gt; and where to find it for Kinetis K60?&lt;/P&gt;&lt;P&gt;Is there a document where I could find the list of all existing inline instructions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 21:55:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW10-Kinetis-inline-assembly/m-p/190611#M6852</guid>
      <dc:creator>NoeSerres</dc:creator>
      <dc:date>2011-03-11T21:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: CW10 Kinetis inline assembly</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW10-Kinetis-inline-assembly/m-p/190612#M6853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the __REV function is being used for endian translations, the htonl() and htons() could be functionally equivalent (assuming a little-endian host).&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>Thu, 16 Jun 2011 12:13:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CW10-Kinetis-inline-assembly/m-p/190612#M6853</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2011-06-16T12:13:46Z</dc:date>
    </item>
  </channel>
</rss>

