<?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>Digital Signal Controllersのトピックqsort in standard library for DSC / MC56F800</title>
    <link>https://community.nxp.com/t5/Digital-Signal-Controllers/qsort-in-standard-library-for-DSC-MC56F800/m-p/401375#M436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the qsort() library function implemented as recursive function or not.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From MISRA 2012, Rule 21.9, page 170&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;The implementation of &lt;EM&gt;qsort&lt;/EM&gt; is likely to be recursive and will therefore place unknown demands on stack resource. This is of concern in embedded systems as the stack is likely to be a fixed, often small size.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This rule raises a good question. I plan to use this function. As I want to be on the safe side I would like to have this question answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Nov 2015 07:15:25 GMT</pubDate>
    <dc:creator>spacedog</dc:creator>
    <dc:date>2015-11-11T07:15:25Z</dc:date>
    <item>
      <title>qsort in standard library for DSC / MC56F800</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/qsort-in-standard-library-for-DSC-MC56F800/m-p/401375#M436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the qsort() library function implemented as recursive function or not.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From MISRA 2012, Rule 21.9, page 170&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-left: .5in;"&gt;The implementation of &lt;EM&gt;qsort&lt;/EM&gt; is likely to be recursive and will therefore place unknown demands on stack resource. This is of concern in embedded systems as the stack is likely to be a fixed, often small size.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This rule raises a good question. I plan to use this function. As I want to be on the safe side I would like to have this question answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2015 07:15:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/qsort-in-standard-library-for-DSC-MC56F800/m-p/401375#M436</guid>
      <dc:creator>spacedog</dc:creator>
      <dc:date>2015-11-11T07:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: qsort in standard library for DSC / MC56F800</title>
      <link>https://community.nxp.com/t5/Digital-Signal-Controllers/qsort-in-standard-library-for-DSC-MC56F800/m-p/401376#M437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Colin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are right, the DSC chip has limited internal SRAM, the stack space is predefined in the linker file when you compile the project, you have to predict the recursive loop number and allocate the corresponding stack space, it is not possible to allocate stack dynamically in application code.&lt;/P&gt;&lt;P&gt;Hope it can help you.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2015 08:01:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Digital-Signal-Controllers/qsort-in-standard-library-for-DSC-MC56F800/m-p/401376#M437</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2015-12-11T08:01:36Z</dc:date>
    </item>
  </channel>
</rss>

