<?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: contiguous variable in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544322#M8652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Fri May 06 04:31:55 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;It isn't' true that the compiler puts the variables in order!&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Of course, it's a Compiler and not Harry Potter. If you want to put your variables ordered somewhere, you have to tell your Compiler:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[B][COLOR=Red] "Please Compiler, put my variables in order !!"[/COLOR][/B]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's a little bit long and therefore a short form was invented: arrays.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wiki:&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;In computer science, an array data structure or simply array is a data structure consisting of a collection of elements (values or variables), each identified by at least one index. An array is stored so that the position of each element can be computed from its index tuple by a mathematical formula.&lt;BR /&gt;For example, an array of 10 integer variables, with indices 0 through 9, may be stored as 10 words at memory addresses 2000, 2004, 2008, … 2036, so that the element with index i has the address 2000 + 4 × i.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;That's what described in #2 (28.04. = 8 days ago). So use arrays (for same data types) or otherwise structs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Millions of C-Programmers are doing that and it's really working: you can access your data via address counter or pointer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know a lot wrong, bla-bla and Ga-Ga posts are confusing you (and me), but guessing isn't a solid way to solve problems.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:00:26 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:00:26Z</dc:date>
    <item>
      <title>contiguous variable</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544311#M8641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Thu Apr 28 02:43:30 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXPresso 3.6 with LPC1758&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If i write this defination:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uint16_t Var1, Var2;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in the map file the position it isn't contiguous.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; COMMON&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x1000087c&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xc ./src/mpp/lib_xxxxx.o&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x1000087c&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Var2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x1000087e&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Var1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I have the two variabile contiguous and ordered ?:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:00:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544311#M8641</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: contiguous variable</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544312#M8642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Thu Apr 28 03:08:58 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: blasiis&lt;/STRONG&gt;&lt;BR /&gt;LPCXPresso 3.6 with LPC1758&lt;BR /&gt;&lt;BR /&gt;If i write this defination:&lt;BR /&gt;uint16_t Var1, Var2;&lt;BR /&gt;&lt;BR /&gt;in the map file the position it isn't contiguous.&lt;BR /&gt;&lt;BR /&gt; COMMON&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x1000087c&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xc ./src/mpp/lib_xxxxx.o&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x1000087c&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Var2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x1000087e&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Var1&lt;BR /&gt;&lt;BR /&gt;How can I have the two variabile contiguous and ordered ?:&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ordered: Try array or struct&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Contiguous: Do you know what uint16_t is? If so, what do you expect?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:00:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544312#M8642</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: contiguous variable</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544313#M8643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Rob65 on Fri Apr 29 07:51:36 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;Ordered: Try array or struct&lt;BR /&gt;&lt;BR /&gt;Contiguous: Do you know what uint16_t is? If so, what do you expect?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Whop, Zero is hitting you in the face with the correct solution :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The question of course is why you want this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:00:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544313#M8643</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: contiguous variable</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544314#M8644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Fri Apr 29 13:11:04 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Rob65&lt;/STRONG&gt;&lt;BR /&gt;Whop, Zero is hitting you in the face with the correct solution :eek:&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was debating whether or not to give blasiis the answer.&amp;nbsp; In the end I also felt that it was more important that he try to understand what Zero was asking him.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@blasiis,&amp;nbsp; A clue on contiguous. How many bits are in 2 bytes?:)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:00:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544314#M8644</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: contiguous variable</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544315#M8645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Fri May 06 00:13:45 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: larryvc&lt;/STRONG&gt;&lt;BR /&gt;I was debating whether or not to give blasiis the answer.&amp;nbsp; In the end I also felt that it was more important that he try to understand what Zero was asking him.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need the variabiles contiguous&amp;nbsp; because ther are the configuration parameters and read through the usb, having contiguous, I can refer to a single start address.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If they are scattered, I need many address !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: larryvc&lt;/STRONG&gt;&lt;BR /&gt;@blasiis,&amp;nbsp; A clue on contiguous. How many bits are in 2 bytes?:)&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What kind of question is that? :confused: How many bits are in 2 bytes ?:confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:00:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544315#M8645</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: contiguous variable</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544316#M8646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Rob65 on Fri May 06 00:38:41 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: blasiis&lt;/STRONG&gt;&lt;BR /&gt;What kind of question is that? :confused: How many bits are in 2 bytes ?:confused:&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A simple one?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You are stating that the two variables are not contiguous in memory but they are. each uint16_t variable contains 16 bits, that about as many as there are bits in 2 bytes :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And it is a common known fact (it's documented in all the standard books about C I have read) that comma separated lists are parsed right to left.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thus; your variables will be place in memory in the order as which you put them in your code but parsed right to left.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So:&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;uint16_t Var1, Var2;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;will results in memory being reserved first for [B]Var2[/B] followed by 2 bytes reserver for [B]Var1[/B].&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If [B]Var2[/B] is placed at address 0x1000087c then [B]Var1[/B] will be placed directly after this on the address that is exactly the number of bytes more than the size of your variable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So what address would you expect the [B]Var1[/B] variable to be at?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hint: just add 2 to 0x1000087c.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;now look at your original posting again and tell me why you think the variables are not contiguous. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want them ordered, have a look at Zero's smashing answer or read above :p&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:00:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544316#M8646</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: contiguous variable</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544317#M8647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Fri May 06 01:14:34 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Rob65&lt;/STRONG&gt;&lt;BR /&gt;A simple one?&lt;BR /&gt;&lt;BR /&gt;You are stating that the two variables are not contiguous in memory but they are. each uint16_t variable contains 16 bits, that about as many as there are bits in 2 bytes :eek:&lt;BR /&gt;And it is a common known fact (it's documented in all the standard books about C I have read) that comma separated lists are parsed right to left.&lt;BR /&gt;&lt;BR /&gt;Thus; your variables will be place in memory in the order as which you put them in your code but parsed right to left.&lt;BR /&gt;So:&lt;BR /&gt;will results in memory being reserved first for [B]Var2[/B] followed by 2 bytes reserver for [B]Var1[/B].&lt;BR /&gt;If [B]Var2[/B] is placed at address 0x1000087c then [B]Var1[/B] will be placed directly after this on the address that is exactly the number of bytes more than the size of your variable.&lt;BR /&gt;So what address would you expect the [B]Var1[/B] variable to be at?&lt;BR /&gt;Hint: just add 2 to 0x1000087c.&lt;BR /&gt;&lt;BR /&gt;now look at your original posting again and tell me why you think the variables are not contiguous. &lt;BR /&gt;If you want them ordered, have a look at Zero's smashing answer or read above :p&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I understand, I did not know that the variables are analyzed from right to left!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I invert the declaration and all is OK !!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; All clear !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks all&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:00:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544317#M8647</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: contiguous variable</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544318#M8648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Fri May 06 01:39:23 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi blasiis,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The answer that Rob65 gave you above is correct.&amp;nbsp; For what you described as your need for contiguous and ordered use Zero's recommendation of using an Array or a Struct for your 2 variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However Rob65:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I put this together to try to show how the compiler should work as you explained and how I thought it would.&amp;nbsp; So much for our books.&amp;nbsp; It appears that the compiler doesn't follow the rules.&amp;nbsp; Even when I changed the order of definition of the two variables Var1 always had the lower address assignment followed by Var2 being placed 2 bytes above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It could be that this occurs randomly and would require several cleans and builds to observe a swap of the variable placement in memory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This example uses semihosting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;/*
===============================================================================
 Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : main.c
 Author&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : $(author)
 Version&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :
 Copyright&amp;nbsp;&amp;nbsp; : $(copyright)
 Description : main definition
===============================================================================
*/
#ifdef __USE_CMSIS
#include "LPC17xx.h"
#endif
#include &amp;lt;cr_section_macros.h&amp;gt;
#include &amp;lt;NXP/crp.h&amp;gt;
// Variable to store CRP value in. Will be placed automatically
// by the linker when "Enable Code Read Protect" selected.
// See crp.h header for more information
__CRP const unsigned int CRP_WORD = CRP_NO_CRP ;
#include &amp;lt;stdio.h&amp;gt;
// TODO: insert other definitions and declarations here
uint16_t Var1, Var2;
 
int main(void) {
 
 Var1 = 5;
 Var2 = 10;
 printf("Var1 is at %08X and = %d\n", &amp;amp;Var1, Var1);
 printf("Var2 is at %08X and = %d\n", &amp;amp;Var2, Var2);
 
 // Enter an infinite loop, just incrementing a counter
 volatile static int i = 0 ;
 while(1) {
&amp;nbsp; i++ ;
 }
 return 0 ;
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Larry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:00:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544318#M8648</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: contiguous variable</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544319#M8649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Fri May 06 02:09:51 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: larryvc&lt;/STRONG&gt;&lt;BR /&gt;Hi blasiis,&lt;BR /&gt; However Rob65:&lt;BR /&gt; It could be that this occurs randomly and would require several cleans and builds to observe a swap of the variable placement in memory.&lt;BR /&gt; &lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have try this code :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
uint8_t ProvaVar1, ProvaVar2;
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;In the map file :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x10000b54&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProvaVar2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ......&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x10000d1e&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProvaVar1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Total different !!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It isnt' true that the compiler puts the variables in order!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have also try to clen project many times&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I initialize the variabiles all is OK !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
uint8_t ProvaVar1 = 0, ProvaVar2 = 0;
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maps:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .bss.ProvaVar1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x10000585&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x1 ./src/Poltrona.o&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x10000585&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProvaVar1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; .bss.ProvaVar2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x10000586&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x1 ./src/Poltrona.o&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x10000586&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProvaVar2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In order from left to right !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:00:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544319#M8649</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: contiguous variable</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544320#M8650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Rob65 on Fri May 06 02:49:41 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I am completely flabbergasted by this result, this is not what I would have expected from the linker.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had to see this for myself to believe it :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So this just leaves the array or struct as Zero suggested.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Use a struct or an array to define variables in contiguous memory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This also is a nice way to identify all your configuration parameters:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
typedef struct {
&amp;nbsp;&amp;nbsp;&amp;nbsp; uint8_t param1;
&amp;nbsp;&amp;nbsp;&amp;nbsp; uint8_t param2;
&amp;nbsp;&amp;nbsp;&amp;nbsp; uint16_t param3;
&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t param4;
} ConfigParameters_t;

ConfigParameter_t ConfigData;
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt;You have to take care of the sizes of the variables: an uint32_t always starts at a 4 byte boundary and an uint16_t on a 2 byte boundary.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you leave out param2 from the structure above, this will just leave a 1 byte gap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If order is not important and you want to prevent this from happening, specify all uint32_t variables first, followed by all unit16_t and then uint8_t. This also prevents gaps in your date (read: unused memory).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll stop reading (computer) books. Either the compiler or the linker optimizes the data in a way that is not clear to me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rob&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:00:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544320#M8650</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: contiguous variable</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544321#M8651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Fri May 06 03:27:05 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: blasiis&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;If I initialize the variabiles all is OK ! &lt;BR /&gt;In order from left to right !&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you look at the example I posted I have initialized the variables and the addresses I received were contiguous.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I did test cleaning and building again many times and had it reverse the order of the variables twice in 30 builds.&amp;nbsp; They always remained contiguous though and that is probably because they are initialized.&amp;nbsp; Yes I am very patient.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is good that we have done this exercise.&amp;nbsp; We now know that this compiler/linker does not do what we expect and have to code carefully to avoid this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have always used arrays or structs to keep my data contiguous/grouped and ordered and would not have noticed this problem with the compiler/linker without this thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To access the variables in the struct in Rob's example use this syntax:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a = ConfigData-&amp;gt;param1;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;b = ConfigData-&amp;gt;param2;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;where a and b are defined as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;uint8_t a,b; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you blasiis for starting this thread.&amp;nbsp;&amp;nbsp;&amp;nbsp; I hope we have given you a solution that satisfies your requirements.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Larry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:00:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544321#M8651</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: contiguous variable</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544322#M8652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Fri May 06 04:31:55 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;It isn't' true that the compiler puts the variables in order!&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Of course, it's a Compiler and not Harry Potter. If you want to put your variables ordered somewhere, you have to tell your Compiler:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[B][COLOR=Red] "Please Compiler, put my variables in order !!"[/COLOR][/B]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's a little bit long and therefore a short form was invented: arrays.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wiki:&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;In computer science, an array data structure or simply array is a data structure consisting of a collection of elements (values or variables), each identified by at least one index. An array is stored so that the position of each element can be computed from its index tuple by a mathematical formula.&lt;BR /&gt;For example, an array of 10 integer variables, with indices 0 through 9, may be stored as 10 words at memory addresses 2000, 2004, 2008, … 2036, so that the element with index i has the address 2000 + 4 × i.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;That's what described in #2 (28.04. = 8 days ago). So use arrays (for same data types) or otherwise structs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Millions of C-Programmers are doing that and it's really working: you can access your data via address counter or pointer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know a lot wrong, bla-bla and Ga-Ga posts are confusing you (and me), but guessing isn't a solid way to solve problems.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:00:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544322#M8652</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: contiguous variable</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544323#M8653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Fri May 06 04:34:53 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Rob65&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;So this just leaves the array or struct as Zero suggested.&lt;BR /&gt;Use a struct or an array to define variables in contiguous memory.&lt;BR /&gt;This also is a nice way to identify all your configuration parameters:&lt;BR /&gt;Rob&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is this:I'm at the end of the development and don't want make a structure, i find an alternative solution&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:00:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544323#M8653</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: contiguous variable</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544324#M8654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Fri May 06 04:51:50 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;[B][COLOR=Red] "Please Compiler, put my variables in order !!"[/COLOR][/B]&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I say this to the compiler without using structures?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:00:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544324#M8654</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: contiguous variable</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544325#M8655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Fri May 06 05:08:50 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: blasiis&lt;/STRONG&gt;&lt;BR /&gt;How do I say this to the compiler without using structures?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;That's a little bit long and therefore a short form was invented: arrays.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Do you know what an array is?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:00:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544325#M8655</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: contiguous variable</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544326#M8656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Fri May 06 05:29:33 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;Do you know what an array is?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;:D Yes of course, but I DON'T WANT USE A STRUCTURE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Probably I cannot explain well in English&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not a newbie!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Development for many years on various processor, but recently with Cortex-M3&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to order the address of single variabiles declared near, it is possible ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:00:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544326#M8656</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: contiguous variable</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544327#M8657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Fri May 06 05:54:13 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: blasiis&lt;/STRONG&gt;&lt;BR /&gt;:D Yes of course, but I DON'T WANT USE A STRUCTURE.&lt;BR /&gt;Probably I cannot explain well in English&lt;BR /&gt;I'm not a newbie!&lt;BR /&gt; Development for many years on various processor, but recently with Cortex-M3&lt;BR /&gt;I need to order the address of single variabiles declared near, it is possible ?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you aren't a newbie, why do you behave so :confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What did you develop for many years? Sorry to say this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Even my 16 year old trainee knows what arrays are and how they are stored :mad:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As experienced programmer you should know that since years (that's no Cortex issue). And if you are responsible for something in this project you could have used the simplest solution and changed your variables in an array within a few minutes / hours instead of wasting 8 days with kidding others.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:00:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544327#M8657</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: contiguous variable</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544328#M8658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Fri May 06 06:07:24 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;I you aren't a newbie, why do you behave so :confused:&lt;BR /&gt;What did you develop for many years? Sorry to say this:&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You ask if I know what an array . . . . :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: Zero&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;As experienced programmer you should know that since years (that's no Cortex issue). And if you are responsible for something in this project you could have used the simplest solution and changed your variables in an array within a few minutes / hours instead of wasting 8 days with kidding others.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have worked with freescale, and the variable are everey time contiguous !&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that the solution is to work with array, but I find a technical explanation befor change direction ! Only this, if it isn't possible i make an array, but it seems strange that there is no linker option to do this&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:00:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544328#M8658</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: contiguous variable</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544329#M8659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by igorsk on Fri May 06 06:08:21 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: blasiis&lt;/STRONG&gt;&lt;BR /&gt;The problem is this:I'm at the end of the development and don't want make a structure, i find an alternative solution&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Why do you [B]have to[/B] have the variables contiguous?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Why you "don't want" to use a structure? Is it a religion thing? Or do you suffer from structophobia?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It might be better if you describe the actual problem instead of how you think it should be solved.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:00:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544329#M8659</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: contiguous variable</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544330#M8660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by blasiis on Fri May 06 06:16:59 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: igorsk&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;2. Why you "don't want" to use a structure? Is it a religion thing? Or do you suffer from structophobia?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I seek only an explanation, I have nothing against the structures that are very comfortable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; The problem is that I have to go to change the current program structure that is in an advanced state of development, but changes it, I'm not afraid.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:00:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/contiguous-variable/m-p/544330#M8660</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:00:31Z</dc:date>
    </item>
  </channel>
</rss>

