<?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: memcmp for far pointers in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/memcmp-for-far-pointers/m-p/211783#M8805</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Thank you both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created my own memcmp for far pointers as Edward proposed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Oct 2012 09:07:03 GMT</pubDate>
    <dc:creator>michaelsarafidi</dc:creator>
    <dc:date>2012-10-09T09:07:03Z</dc:date>
    <item>
      <title>memcmp for far pointers</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/memcmp-for-far-pointers/m-p/211780#M8802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am using Codewarrior IDE 5.9.0 build 5294 and i am trying to compare 2 tables with memcmp.&lt;/P&gt;&lt;P&gt;if both tables are in near memory then there is no problem. if one of them is in far memory then memcmp does not get the correct address.&lt;/P&gt;&lt;P&gt;it gets a 16bit address. I know that in standard c there is also _fmemcmp for far pointers. I am including ansib.lib that does not include _fmemcmp.&lt;/P&gt;&lt;P&gt;Should i include a different library or there is another workarround?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 08:27:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/memcmp-for-far-pointers/m-p/211780#M8802</guid>
      <dc:creator>michaelsarafidi</dc:creator>
      <dc:date>2012-10-09T08:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: memcmp for far pointers</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/memcmp-for-far-pointers/m-p/211781#M8803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it's easiest to take some known memcmp implementation, rename it, and just add missing far keywords.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c/c++ memcmp: &lt;A href="http://stackoverflow.com/questions/5017659/implementing-memcmp" title="http://stackoverflow.com/questions/5017659/implementing-memcmp"&gt;c++ - Implementing memcmp - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 08:49:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/memcmp-for-far-pointers/m-p/211781#M8803</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2012-10-09T08:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: memcmp for far pointers</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/memcmp-for-far-pointers/m-p/211782#M8804</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;/P&gt;&lt;P&gt;ANSI libraries delivered with CodeWarrior for HCS12 are configured to handle near pointers if you are building in banked memory model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This &lt;A _jive_internal="true" href="https://community.nxp.com/message/300600#300600"&gt;post &lt;/A&gt;provides you with some hint son how you can get memcpy or memcmp to handle far pointer as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CrasyCat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 08:53:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/memcmp-for-far-pointers/m-p/211782#M8804</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2012-10-09T08:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: memcmp for far pointers</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/memcmp-for-far-pointers/m-p/211783#M8805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Thank you both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created my own memcmp for far pointers as Edward proposed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 09:07:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/memcmp-for-far-pointers/m-p/211783#M8805</guid>
      <dc:creator>michaelsarafidi</dc:creator>
      <dc:date>2012-10-09T09:07:03Z</dc:date>
    </item>
  </channel>
</rss>

