<?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>S32 Design StudioのトピックUninitialize  the variable of different segemnts</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/Uninitialize-the-variable-of-different-segemnts/m-p/746867#M2560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to locate the variables in different segments of the memory (ROM or RAM ) without initialization (not initialization to 0 at the start up time).　&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;in IAR IDE , we can use no_init syntax to the variables.　&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;ex:　&lt;/P&gt;&lt;P&gt;#pragma segment = "ABC" 　&lt;/P&gt;&lt;P&gt;__no_init int varaible1;　&lt;/P&gt;&lt;P&gt;__no_init int varaible2;　&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;I just to know what is the syntax for gcc compiler to for not to initialize the variable.　&lt;/P&gt;&lt;P&gt;below code is to locate the variable to paricular segment but it is initialized to 0.　&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #820040; font-size: small; font-family: Consolas;"&gt;&lt;STRONG&gt;__attribute__&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;((section(&lt;/SPAN&gt;&lt;SPAN style="color: #4200ff; font-size: small; font-family: Consolas;"&gt;".ABC"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;))) &lt;/SPAN&gt;&lt;SPAN style="color: #00603c; font-size: small; font-family: Consolas;"&gt;int&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Helv;"&gt;varaible1&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;;　&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;Kindly help me in this.　&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;Regards,　&lt;/P&gt;&lt;P&gt;Ambarish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Dec 2017 09:38:33 GMT</pubDate>
    <dc:creator>ambarishhundeka</dc:creator>
    <dc:date>2017-12-26T09:38:33Z</dc:date>
    <item>
      <title>Uninitialize  the variable of different segemnts</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Uninitialize-the-variable-of-different-segemnts/m-p/746867#M2560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to locate the variables in different segments of the memory (ROM or RAM ) without initialization (not initialization to 0 at the start up time).　&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;in IAR IDE , we can use no_init syntax to the variables.　&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;ex:　&lt;/P&gt;&lt;P&gt;#pragma segment = "ABC" 　&lt;/P&gt;&lt;P&gt;__no_init int varaible1;　&lt;/P&gt;&lt;P&gt;__no_init int varaible2;　&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;I just to know what is the syntax for gcc compiler to for not to initialize the variable.　&lt;/P&gt;&lt;P&gt;below code is to locate the variable to paricular segment but it is initialized to 0.　&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #820040; font-size: small; font-family: Consolas;"&gt;&lt;STRONG&gt;__attribute__&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;((section(&lt;/SPAN&gt;&lt;SPAN style="color: #4200ff; font-size: small; font-family: Consolas;"&gt;".ABC"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;))) &lt;/SPAN&gt;&lt;SPAN style="color: #00603c; font-size: small; font-family: Consolas;"&gt;int&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Helv;"&gt;varaible1&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;;　&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;Kindly help me in this.　&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;Regards,　&lt;/P&gt;&lt;P&gt;Ambarish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Dec 2017 09:38:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Uninitialize-the-variable-of-different-segemnts/m-p/746867#M2560</guid>
      <dc:creator>ambarishhundeka</dc:creator>
      <dc:date>2017-12-26T09:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Uninitialize  the variable of different segemnts</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Uninitialize-the-variable-of-different-segemnts/m-p/746868#M2561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already sent you the answer in the thread below. Please do not duplicate threads. Thank you for understanding.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/466714"&gt;https://community.nxp.com/thread/466714&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2017 10:54:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Uninitialize-the-variable-of-different-segemnts/m-p/746868#M2561</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2017-12-27T10:54:09Z</dc:date>
    </item>
  </channel>
</rss>

