<?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: Hsfpe source files in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Hsfpe-source-files/m-p/604492#M7250</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hi, Stanislav.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I made a test function like this.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;void floatTestFunc()&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp;int a;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp;float x=1.0f,y=1.0f,z;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp;z = x* y;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp;a = (int) z;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;}&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;If I build upper codes with below libraries in Eclipse Codewarrior, &amp;nbsp;there is no error.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;- libc_E200z760_VLE. a&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;- librt_E200z760_VLE. a&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;But, if I build the codes without libraries, there are some errors like following.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;- undefined : '_f_ftoi' &amp;nbsp;Referenced 'from&amp;nbsp;&lt;SPAN&gt;floatTestFunc' in......&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;- undefined :&amp;nbsp;&lt;SPAN&gt;'_f_mul' &amp;nbsp;Referenced 'from&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;floatTestFunc' in......&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;But, &amp;nbsp;I can't find related source files in upper folder.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;I would like to build with source files regarding floating points.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;Thanks.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jan 2017 06:01:40 GMT</pubDate>
    <dc:creator>lukekim</dc:creator>
    <dc:date>2017-01-31T06:01:40Z</dc:date>
    <item>
      <title>Hsfpe source files</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Hsfpe-source-files/m-p/604488#M7246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where can i find&amp;nbsp;source files of SFPE libraries?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 06:45:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Hsfpe-source-files/m-p/604488#M7246</guid>
      <dc:creator>lukekim</dc:creator>
      <dc:date>2017-01-11T06:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Hsfpe source files</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Hsfpe-source-files/m-p/604489#M7247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi luke,&lt;/P&gt;&lt;P&gt;I guess you are looking math&amp;nbsp;SPFP library source codes.&lt;/P&gt;&lt;P&gt;Could you be little more specific about the source files you are missing?&lt;/P&gt;&lt;P&gt;Which CodeWarrior do you use? CW for MPC55xx/56xx v2.x?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks!&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 12:37:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Hsfpe-source-files/m-p/604489#M7247</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2017-01-18T12:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hsfpe source files</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Hsfpe-source-files/m-p/604490#M7248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Stanislav.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your guess is right.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We use two versions of CW.&amp;nbsp;&lt;/P&gt;&lt;P&gt;- CW MCU V10. 7&lt;/P&gt;&lt;P&gt;- CW for MPC55XX and MPC56XX 2.10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using a &amp;nbsp;MPC5674F.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 00:51:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Hsfpe-source-files/m-p/604490#M7248</guid>
      <dc:creator>lukekim</dc:creator>
      <dc:date>2017-01-23T00:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Hsfpe source files</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Hsfpe-source-files/m-p/604491#M7249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;There is a complete .mcp project of FP library in CodeWarrior Classic:&lt;/P&gt;&lt;P&gt;&amp;lt;CW for MPC55xx and MPC56xx 2.10&amp;gt;\PowerPC_EABI_Support\MSL\MSL_C\PPC_EABI\Project\fdlibm.*.mcp&lt;/P&gt;&lt;P&gt;sources are available here:&lt;/P&gt;&lt;P&gt;&amp;lt;CW for MPC55xx and MPC56xx 2.10&amp;gt;\PowerPC_EABI_Support\MSL\MSL_C\PPC_EABI\SRC\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In CodeWarrior Eclipse (V10.7) SP floating point routines are located here:&lt;/P&gt;&lt;P&gt;&amp;lt;CW MCU v10.7&amp;gt;\MCU\PA_Support\ewl\EWL_C\src\sun_math\Single_precision\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 16:27:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Hsfpe-source-files/m-p/604491#M7249</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2017-01-23T16:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hsfpe source files</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Hsfpe-source-files/m-p/604492#M7250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Hi, Stanislav.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I made a test function like this.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;void floatTestFunc()&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp;int a;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp;float x=1.0f,y=1.0f,z;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp;z = x* y;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp;a = (int) z;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;}&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;If I build upper codes with below libraries in Eclipse Codewarrior, &amp;nbsp;there is no error.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;- libc_E200z760_VLE. a&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;- librt_E200z760_VLE. a&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;But, if I build the codes without libraries, there are some errors like following.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;- undefined : '_f_ftoi' &amp;nbsp;Referenced 'from&amp;nbsp;&lt;SPAN&gt;floatTestFunc' in......&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;- undefined :&amp;nbsp;&lt;SPAN&gt;'_f_mul' &amp;nbsp;Referenced 'from&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;floatTestFunc' in......&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;But, &amp;nbsp;I can't find related source files in upper folder.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;I would like to build with source files regarding floating points.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;Thanks.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 06:01:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Hsfpe-source-files/m-p/604492#M7250</guid>
      <dc:creator>lukekim</dc:creator>
      <dc:date>2017-01-31T06:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Hsfpe source files</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Hsfpe-source-files/m-p/604493#M7251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Luke,&lt;/P&gt;&lt;P&gt;The functions you are referring to are software emulated versions of float multiplication/conversion float to int.&lt;/P&gt;&lt;P&gt;These functions are being used by the compiler in case floating point flag is set to software (-fp soft).&lt;/P&gt;&lt;P&gt;Unfortunately there is no source code available for these functions, they are available only in object form&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;CW MCU v10.x&amp;gt;\MCU\PA_Support\ewl\EWL_Runtime\Runtime_PA\Source\sfpe.*.a"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please make sure your compiler has -fp SPFP &amp;nbsp;or -fp SPFP_Only flag since it seems you are using a MCU with SPFP unit (e200z7) so you don't have to emulate single precision floating point operations using a library routines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 12:41:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Hsfpe-source-files/m-p/604493#M7251</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2017-01-31T12:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Hsfpe source files</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Hsfpe-source-files/m-p/604494#M7252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stanislav,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To &amp;nbsp;clarify my understanding is correct, if I change the floating point option to SFPE, the errors will be cleared. &amp;nbsp;Is it correct?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, I don't know the difference between Software and SFPE.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your response helped me a lot.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 01:42:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Hsfpe-source-files/m-p/604494#M7252</guid>
      <dc:creator>lukekim</dc:creator>
      <dc:date>2017-02-07T01:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hsfpe source files</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Hsfpe-source-files/m-p/604495#M7253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luke,&lt;/P&gt;&lt;P&gt;Yes your assumption is correct - errors should disappear if you switch to SPFP or SPFP_Only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* SPFP (Single Precision Floating Point) is in fact kind of Hardware floating point support. This option causes that single precision - 32 bit float number calculations are compiled into a &amp;nbsp;single hardware instruction (or sequence of these instructions)&lt;/P&gt;&lt;P&gt;For more details please see &amp;nbsp;EFPU2 unit - &lt;STRONG&gt;&lt;A class="link-titled" href="http://www.nxp.com/assets/documents/data/en/reference-manuals/e200z760RM.pdf" title="http://www.nxp.com/assets/documents/data/en/reference-manuals/e200z760RM.pdf"&gt;http://www.nxp.com/assets/documents/data/en/reference-manuals/e200z760RM.pdf&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Double precision (64-bit ) operations are emulated by SW since there is no hw support for this on chip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Software - this option must be used on the devices without any floating point unit and both single/float and double precision calculation are emulated using software routines with sequence of an integer instructions. These routines significantly decreases CPU speed performance since instead of a single instruction there is a complex routine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;Stan,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 17:19:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Hsfpe-source-files/m-p/604495#M7253</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2017-02-07T17:19:38Z</dc:date>
    </item>
  </channel>
</rss>

