<?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: Initializing variables of type long long in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Initializing-variables-of-type-long-long/m-p/206479#M7966</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe neither the HCS08 nor the HCS12 Codewarrior supports C99. If you need to use C99 features, the first thing you should do is to get a C99 compiler.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 May 2011 17:56:00 GMT</pubDate>
    <dc:creator>Lundin</dc:creator>
    <dc:date>2011-05-16T17:56:00Z</dc:date>
    <item>
      <title>Initializing variables of type long long</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Initializing-variables-of-type-long-long/m-p/206473#M7960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a problem initializing variables of type long long.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Normally this should work:&lt;/P&gt;&lt;PRE&gt;long long x = 0x428A2F98D728AE22LL;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;but when I compile I get the following error: C2704: Illegal number&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this not supported by CW compiler or am I doing something wrong ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 May 2011 01:30:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Initializing-variables-of-type-long-long/m-p/206473#M7960</guid>
      <dc:creator>lowpy</dc:creator>
      <dc:date>2011-05-15T01:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Initializing variables of type long long</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Initializing-variables-of-type-long-long/m-p/206474#M7961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;yes, 64bit integers are not supported. long long is supported with 32bit max.&lt;/P&gt;&lt;P&gt;Anyway, doing 64bit math with a HCS08 or HCS12 will be rather a performance bottleneck.&lt;/P&gt;&lt;P&gt;So if you are using a 8 or 16bit processor for 64bit math, you might use the wrong cpu for it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 May 2011 03:14:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Initializing-variables-of-type-long-long/m-p/206474#M7961</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2011-05-15T03:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Initializing variables of type long long</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Initializing-variables-of-type-long-long/m-p/206475#M7962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if lossless 64bit computation is required one&amp;nbsp;or few times per second? Even 4-bits MCU&amp;nbsp;can do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 May 2011 15:34:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Initializing-variables-of-type-long-long/m-p/206475#M7962</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2011-05-15T15:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Initializing variables of type long long</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Initializing-variables-of-type-long-long/m-p/206476#M7963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me just see it I got this right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even if I manage to initialize the variable in another way, operations on that variable will only affect the lower 32 bits ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 May 2011 17:15:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Initializing-variables-of-type-long-long/m-p/206476#M7963</guid>
      <dc:creator>lowpy</dc:creator>
      <dc:date>2011-05-15T17:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Initializing variables of type long long</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Initializing-variables-of-type-long-long/m-p/206477#M7964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sizeof(long long) will return 4, means it occupies 4 bytes (32bit) in memory. You will only have 32bit available.&lt;/P&gt;&lt;P&gt;An alternative would be to use/implement a software library, with something like&lt;/P&gt;&lt;P&gt;int64_t Add64(int64_t, int64_t);&lt;/P&gt;&lt;P&gt;I did not check, but maybe things like that is already awailable as open source.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 May 2011 17:22:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Initializing-variables-of-type-long-long/m-p/206477#M7964</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2011-05-15T17:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Initializing variables of type long long</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Initializing-variables-of-type-long-long/m-p/206478#M7965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your variable could be treated as an array of two double words, four words, or eight bytes, or maybe a union of all three to provide greater&amp;nbsp;flexibility.&amp;nbsp; Arithmetic operations would then&amp;nbsp;need to be performed on the individual array elements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mac&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 10:05:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Initializing-variables-of-type-long-long/m-p/206478#M7965</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2011-05-16T10:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Initializing variables of type long long</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Initializing-variables-of-type-long-long/m-p/206479#M7966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe neither the HCS08 nor the HCS12 Codewarrior supports C99. If you need to use C99 features, the first thing you should do is to get a C99 compiler.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 17:56:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Initializing-variables-of-type-long-long/m-p/206479#M7966</guid>
      <dc:creator>Lundin</dc:creator>
      <dc:date>2011-05-16T17:56:00Z</dc:date>
    </item>
  </channel>
</rss>

