title: Referencing a variable directly vs relative to %rip
body: <p>I've used the following two different approaches to referencing a variable in assembly. Using the variable itself:</p>
  <pre><code># Move a variable, directly referencing it rather than relative to %rip
  movzbq   my_var,   %r14
  leaq     my_var,   %r15
  </code></pre>
  <p>And then using the relative address to <code>rip</code>:</p>
  <pre><code># Move a variable, then its address into two registers
  movzbq  my_var(%rip),   %r14
  leaq    my_var(%rip),   %r15 
  </code></pre>
  <p>I find the first one (of course) more readable than the second. What are the differences between the two different approaches, and is one preferred over another?</p>