<?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 S32 Design Studio on different platforms in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/S32-Design-Studio-on-different-platforms/m-p/1067570#M6399</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a simple project, compiled with the same version of the compiler under Windows and Ubuntu respectively, but the generated elf files are different, and the actual execution time of the program is also different, which in some cases may cause Unexpected results appear. Why does this happen? Is there any solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The compiler version is as follows:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Ubuntu:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;powerpc-eabivle-gcc (GCC) &lt;STRONG&gt;4.9.4 20160726&lt;/STRONG&gt; (&lt;SPAN style="color: red;"&gt;Sat May 27 11:09:55&lt;/SPAN&gt; CDT 2017&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; build.sh rev=&lt;SPAN style="color: red;"&gt;gd8b6c20&lt;/SPAN&gt; s=F494 ELe200 -V release_&lt;SPAN style="color: red;"&gt;gd8b6c20&lt;/SPAN&gt;_build_Fed_ELe200_ML0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Windows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;powerpc-eabivle-gcc (GCC) &lt;STRONG&gt;4.9.4 20160726&lt;/STRONG&gt; (&lt;SPAN style="color: blue;"&gt;Tue Oct 17 13:22:54&lt;/SPAN&gt; CDT 2017&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; build.sh rev=&lt;SPAN style="color: blue;"&gt;g0812845 &lt;/SPAN&gt;s=F494 ELe200 -V release_&lt;SPAN style="color: blue;"&gt;g0812845&lt;/SPAN&gt;_build_Fed_ELe200_ML0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Aug 2020 03:24:38 GMT</pubDate>
    <dc:creator>haiquan_sun</dc:creator>
    <dc:date>2020-08-06T03:24:38Z</dc:date>
    <item>
      <title>S32 Design Studio on different platforms</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32-Design-Studio-on-different-platforms/m-p/1067570#M6399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a simple project, compiled with the same version of the compiler under Windows and Ubuntu respectively, but the generated elf files are different, and the actual execution time of the program is also different, which in some cases may cause Unexpected results appear. Why does this happen? Is there any solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The compiler version is as follows:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Ubuntu:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;powerpc-eabivle-gcc (GCC) &lt;STRONG&gt;4.9.4 20160726&lt;/STRONG&gt; (&lt;SPAN style="color: red;"&gt;Sat May 27 11:09:55&lt;/SPAN&gt; CDT 2017&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; build.sh rev=&lt;SPAN style="color: red;"&gt;gd8b6c20&lt;/SPAN&gt; s=F494 ELe200 -V release_&lt;SPAN style="color: red;"&gt;gd8b6c20&lt;/SPAN&gt;_build_Fed_ELe200_ML0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Windows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;powerpc-eabivle-gcc (GCC) &lt;STRONG&gt;4.9.4 20160726&lt;/STRONG&gt; (&lt;SPAN style="color: blue;"&gt;Tue Oct 17 13:22:54&lt;/SPAN&gt; CDT 2017&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; build.sh rev=&lt;SPAN style="color: blue;"&gt;g0812845 &lt;/SPAN&gt;s=F494 ELe200 -V release_&lt;SPAN style="color: blue;"&gt;g0812845&lt;/SPAN&gt;_build_Fed_ELe200_ML0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2020 03:24:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32-Design-Studio-on-different-platforms/m-p/1067570#M6399</guid>
      <dc:creator>haiquan_sun</dc:creator>
      <dc:date>2020-08-06T03:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: S32 Design Studio on different platforms</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32-Design-Studio-on-different-platforms/m-p/1067571#M6400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;It's not something special unless the generated code works in both cases.&lt;/P&gt;&lt;P&gt;Each OS has it's own variance e.g. different OS time-outs may cause the optimizations stage is shorter on one OS causing that some additional instructions keeps non-optimized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We also observed differences between OSes related to&amp;nbsp; qsort(). See more info below:&lt;/P&gt;&lt;P&gt;&lt;A class="" data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fsourceforge.net%2Fp%2Fmingw%2Fbugs%2F1699%2F" rel="nofollow" style="color: #3d9ce7; background-color: #ffffff; border: 0px; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;MinGW - Minimalist GNU for Windows / Issues / #1699 Bug in qsort when number of elements is small&lt;/A&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;Hope it helps.&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2020 08:13:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32-Design-Studio-on-different-platforms/m-p/1067571#M6400</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2020-08-06T08:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: S32 Design Studio on different platforms</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32-Design-Studio-on-different-platforms/m-p/1067572#M6401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stanislav，&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not a program running under different operating systems, but the result of cross-compilation using different platforms. The codes and library files used by them are exactly the same. According to my understanding, the executable files generated should also be the same, but this is not the case, which caused some strange problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2020 11:21:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32-Design-Studio-on-different-platforms/m-p/1067572#M6401</guid>
      <dc:creator>haiquan_sun</dc:creator>
      <dc:date>2020-08-14T11:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: S32 Design Studio on different platforms</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/S32-Design-Studio-on-different-platforms/m-p/1067573#M6402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. At least you use different GCC builds that may result in different code generated due to some changes/fixes in codegen respectively.&lt;/P&gt;&lt;P&gt;2. GCC relies on OS system libraries and some functions may behave differently. Most popular example is qsort() function implementation on Windows vs Linux.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2020 20:41:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/S32-Design-Studio-on-different-platforms/m-p/1067573#M6402</guid>
      <dc:creator>alexanderfedoto</dc:creator>
      <dc:date>2020-08-17T20:41:09Z</dc:date>
    </item>
  </channel>
</rss>

