<?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: Why long long not supported in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Why-long-long-not-supported/m-p/422442#M2851</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;this depends on how many floating computation you used in your project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;for example, if use “32bit/IEEE32 for the HC12"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/52115iC5A338AA4753F6C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt; In CW for hcs12x, long long type is 32bit by default.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;if you use&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: .75pt .75pt .75pt .75pt;"&gt;&lt;TABLE border="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: .75pt .75pt .75pt .75pt;"&gt;&lt;/TD&gt;&lt;TD style="padding: .75pt .75pt .75pt .75pt;"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;volatile long long a=123,b=123, c;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; c=a*b;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;c=a*b takes 60+ bytes&amp;nbsp; code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;if use:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: .75pt .75pt .75pt .75pt;"&gt;&lt;/TD&gt;&lt;TD style="padding: .75pt .75pt .75pt .75pt;"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;volatile float a=123,b=123, c;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;&amp;nbsp; c=a*b;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;here&amp;nbsp; c=a*b takes 260+ bytes code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;if use:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&lt;EM&gt;volatile int a=1234,b=1234, c;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; c=a+b;&lt;/EM&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;here, c=a+b takes 13 bytes code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;can this help you?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;&lt;BR /&gt; Have a great day,&lt;BR /&gt; Zhang Jun&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt; Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt; -----------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Aug 2015 07:29:41 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2015-08-10T07:29:41Z</dc:date>
    <item>
      <title>Why long long not supported</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Why-long-long-not-supported/m-p/422439#M2848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i wanted to do floating point calculations but since in my project floating point calculations are not allowed i was trying to do integer calculations. In order to get values up to 5 digits after the decimal i was doing all the calculations with a multiplication factor of 10000000. Now my doubt to make this kind of huge calculations i wanted to use long long values, but the compiler does not seem to support. Can someone please help me to understand. And also if i include floating point calculations will be code size increases considerably?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Aug 2015 18:57:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Why-long-long-not-supported/m-p/422439#M2848</guid>
      <dc:creator>rahulkrishna</dc:creator>
      <dc:date>2015-08-07T18:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why long long not supported</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Why-long-long-not-supported/m-p/422440#M2849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may help you. &lt;A href="https://community.nxp.com/thread/357841"&gt;Float Cast Causing Link Error&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ray.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2015 05:22:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Why-long-long-not-supported/m-p/422440#M2849</guid>
      <dc:creator>rayhall</dc:creator>
      <dc:date>2015-08-08T05:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why long long not supported</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Why-long-long-not-supported/m-p/422441#M2850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much but i want to know how much does the code size increase, since if do very few calculations is it worth adding the floating point library.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Aug 2015 07:05:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Why-long-long-not-supported/m-p/422441#M2850</guid>
      <dc:creator>rahulkrishna</dc:creator>
      <dc:date>2015-08-08T07:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why long long not supported</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Why-long-long-not-supported/m-p/422442#M2851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;this depends on how many floating computation you used in your project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;for example, if use “32bit/IEEE32 for the HC12"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/52115iC5A338AA4753F6C4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt; In CW for hcs12x, long long type is 32bit by default.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;if you use&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: .75pt .75pt .75pt .75pt;"&gt;&lt;TABLE border="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: .75pt .75pt .75pt .75pt;"&gt;&lt;/TD&gt;&lt;TD style="padding: .75pt .75pt .75pt .75pt;"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;volatile long long a=123,b=123, c;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; c=a*b;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;c=a*b takes 60+ bytes&amp;nbsp; code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;if use:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="padding: .75pt .75pt .75pt .75pt;"&gt;&lt;/TD&gt;&lt;TD style="padding: .75pt .75pt .75pt .75pt;"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;volatile float a=123,b=123, c;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;&amp;nbsp; c=a*b;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;here&amp;nbsp; c=a*b takes 260+ bytes code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;if use:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&lt;EM&gt;volatile int a=1234,b=1234, c;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; c=a+b;&lt;/EM&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;here, c=a+b takes 13 bytes code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;can this help you?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;&lt;BR /&gt; Have a great day,&lt;BR /&gt; Zhang Jun&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman','serif';"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt; Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt; -----------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Aug 2015 07:29:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Why-long-long-not-supported/m-p/422442#M2851</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-08-10T07:29:41Z</dc:date>
    </item>
  </channel>
</rss>

