<?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: .data initializes ram! in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/data-initializes-ram/m-p/559950#M15643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by cwpjr on Thu Aug 15 13:58:29 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;OK I understand this now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question should have been how do I allocate uninitialized, none zeroed ram with labels that the assembler creates and the linker can use?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need a new post?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:37:24 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:37:24Z</dc:date>
    <item>
      <title>.data initializes ram!</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/data-initializes-ram/m-p/559946#M15639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by cwpjr on Thu Aug 15 12:45:51 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;.data is supposed to be uninitialized, Right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.bss // is supposed to be initialized to zero, right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .word 1 // .word in .bss section requires but ignores the argument of 1. .word 2 is still 1 word.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;.data also changes .word &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .word 1 // requires argument and initializes this word to 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .space 4 // allocates word but initializes it to zero.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So where does the doc show how to define data that is not initialized?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:37:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/data-initializes-ram/m-p/559946#M15639</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: .data initializes ram!</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/data-initializes-ram/m-p/559947#M15640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mc on Thu Aug 15 13:01:00 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi cwpjr,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually the global and static variables initialized in your program will go to .data segment. All these variables will have an initial value as assigned by you in your program(code).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;global and static variables that are not initialized in your program will go to .bss segment. Because sometimes uninitialized variables could be dangerous, these variables are initialized &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to zero by the tool .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:37:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/data-initializes-ram/m-p/559947#M15640</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: .data initializes ram!</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/data-initializes-ram/m-p/559948#M15641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by cwpjr on Thu Aug 15 13:20:59 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;My code is assembly in a .s file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Called from main();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Both .data and .bss are initialized to zero at the entry to main breakpoint in the debugger.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.data stuff is first, then .bss stuff.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Only the Ram after the .bss is uninitialized.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:37:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/data-initializes-ram/m-p/559948#M15641</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: .data initializes ram!</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/data-initializes-ram/m-p/559949#M15642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Thu Aug 15 13:55:17 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;That is correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;.data is initialised &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.bss is zeroed&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Only the heap and stack are uninitialised.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have data initialised to zero, that is because how it has been initialised in your program.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For more infor, look on Wikipedia &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FData_segment" rel="nofollow" target="_blank"&gt;http://en.wikipedia.org/wiki/Data_segment&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:37:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/data-initializes-ram/m-p/559949#M15642</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: .data initializes ram!</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/data-initializes-ram/m-p/559950#M15643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by cwpjr on Thu Aug 15 13:58:29 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;OK I understand this now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question should have been how do I allocate uninitialized, none zeroed ram with labels that the assembler creates and the linker can use?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need a new post?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:37:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/data-initializes-ram/m-p/559950#M15643</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:37:24Z</dc:date>
    </item>
  </channel>
</rss>

