title: ARM assembly variable declaration
body: <p>Hi I have a question about the order of declaration variables.
  Little example.
  If in declaration i write:</p>
  
  <pre><code>    .data
      .align  0
  res:    .long 0
  num:    .long   7
  var2:   .short  30
  </code></pre>
  
  <p>the program works, but if I write this:</p>
  
  <pre><code>    .data
      .align  0
      res:    .long 0
      var2:   .short  30
      num:    .long   7
  </code></pre>
  
  <p>the program don't work:
  for example I can't do a simple</p>
  
  <pre><code>ldr     r5, =num
  ldr     r5, [r5]
  </code></pre>
  
  <p>with the second configuration. the error is: no source available for "0x20010"</p>
  
  <p>I'm using eclipse on a processor am335x
  Thx</p>