title: First time learning assembly, is this saying a word size is 8-bytes?
body: <p>When I break main it looks like the bold line is where i is being created and initialized. I think I'm going at this all wrong, I'm trying to examine x86_64 assembly from a book that is explaining x86. This seems weird and I'm pretty sure I just don't understand seeing as in this book he says he'll refer to a word and dword as 4-bytes. If I could get an explanation to aid my incognisance it would be greatly appreciated.
  <code> </p>
  
  <pre>    (gdb) list
      1   #include &lt;stdio.h&gt;
      2   
      3   int main()
      4   {
      5       int i;
      6       for(i=0; i &lt; 10; i++)
      7       {
      8           printf("Hello, world!\n");
      9       }
      10      return 0;
      (gdb) disassemble main
      Dump of assembler code for function main:
         0x0000000100000f10 &lt;+0&gt;: push   rbp
         0x0000000100000f11 &lt;+1&gt;: mov    rbp,rsp
         0x0000000100000f14 &lt;+4&gt;: sub    rsp,0x10
         0x0000000100000f18 &lt;+8&gt;: mov    DWORD PTR [rbp-0x4],0x0
         0x0000000100000f1f &lt;+15&gt;:    mov    DWORD PTR [rbp-0x8],0x0
         0x0000000100000f26 &lt;+22&gt;:    cmp    DWORD PTR [rbp-0x8],0xa
         0x0000000100000f2d &lt;+29&gt;:    jge    0x100000f54 &lt;main+68&gt;
         0x0000000100000f33 &lt;+35&gt;:    lea    rdi,[rip+0x48]        # 0x100000f82
         0x0000000100000f3a &lt;+42&gt;:    mov    al,0x0
         0x0000000100000f3c &lt;+44&gt;:    call   0x100000f60
         0x0000000100000f41 &lt;+49&gt;:    mov    DWORD PTR [rbp-0xc],eax
         0x0000000100000f44 &lt;+52&gt;:    mov    eax,DWORD PTR [rbp-0x8]
         0x0000000100000f47 &lt;+55&gt;:    add    eax,0x1
         0x0000000100000f4c &lt;+60&gt;:    mov    DWORD PTR [rbp-0x8],eax
         0x0000000100000f4f &lt;+63&gt;:    jmp    0x100000f26 &lt;main+22&gt;
         0x0000000100000f54 &lt;+68&gt;:    mov    eax,0x0
         0x0000000100000f59 &lt;+73&gt;:    add    rsp,0x10
         0x0000000100000f5d &lt;+77&gt;:    pop    rbp
         0x0000000100000f5e &lt;+78&gt;:    ret    
      End of assembler dump. &lt;/code&gt;
  </code></pre>