<?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: maximum stack usage in S32K</title>
    <link>https://community.nxp.com/t5/S32K/maximum-stack-usage/m-p/1798625#M31269</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure what's your compiler - for gcc you can use -fstack-usage option to get used stack for each function. During compilation is for each object file (*.o) generated *.su file with stack usage:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jiri_kral_0-1706698736625.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/261038iC4A1B916E91FB0A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="jiri_kral_0-1706698736625.png" alt="jiri_kral_0-1706698736625.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add -fstack-usage in project properties:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jiri_kral_1-1706698904908.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/261039i29865E3F6DAF9410/image-size/large?v=v2&amp;amp;px=999" role="button" title="jiri_kral_1-1706698904908.png" alt="jiri_kral_1-1706698904908.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can find more details here -&amp;nbsp;&lt;A href="https://mcuoneclipse.com/2015/08/21/gnu-static-stack-usage-analysis/" target="_blank"&gt;https://mcuoneclipse.com/2015/08/21/gnu-static-stack-usage-analysis/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jan 2024 11:02:50 GMT</pubDate>
    <dc:creator>jiri_kral</dc:creator>
    <dc:date>2024-01-31T11:02:50Z</dc:date>
    <item>
      <title>maximum stack usage</title>
      <link>https://community.nxp.com/t5/S32K/maximum-stack-usage/m-p/1776075#M29695</link>
      <description>&lt;P&gt;Hello, I am using s32k3 with s32 DS, please tell me how to know maximum stack usage in the program, i searched ld manual where i got a flag "--stack-analysis", but where should i put this flag in S32 ds? Is there any other option to see maximum stack usage of a program?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 06:38:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/maximum-stack-usage/m-p/1776075#M29695</guid>
      <dc:creator>sanjay645</dc:creator>
      <dc:date>2023-12-18T06:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: maximum stack usage</title>
      <link>https://community.nxp.com/t5/S32K/maximum-stack-usage/m-p/1798625#M31269</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not sure what's your compiler - for gcc you can use -fstack-usage option to get used stack for each function. During compilation is for each object file (*.o) generated *.su file with stack usage:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jiri_kral_0-1706698736625.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/261038iC4A1B916E91FB0A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="jiri_kral_0-1706698736625.png" alt="jiri_kral_0-1706698736625.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add -fstack-usage in project properties:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jiri_kral_1-1706698904908.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/261039i29865E3F6DAF9410/image-size/large?v=v2&amp;amp;px=999" role="button" title="jiri_kral_1-1706698904908.png" alt="jiri_kral_1-1706698904908.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can find more details here -&amp;nbsp;&lt;A href="https://mcuoneclipse.com/2015/08/21/gnu-static-stack-usage-analysis/" target="_blank"&gt;https://mcuoneclipse.com/2015/08/21/gnu-static-stack-usage-analysis/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 11:02:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/maximum-stack-usage/m-p/1798625#M31269</guid>
      <dc:creator>jiri_kral</dc:creator>
      <dc:date>2024-01-31T11:02:50Z</dc:date>
    </item>
  </channel>
</rss>

