title: Debugging a compiled C program with GDB to learn Assembly programming
body: <p>I'm very new to gdb. I wrote a very simple hello world program</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main() {
    printf("Hello world\n");
    return 0;
  }
  </code></pre>
  
  <p>I compiled it with <code>-g</code> to add debugging symbols</p>
  
  <pre><code>gcc -g -o hello hello.c
  </code></pre>
  
  <p>I'm not sure what to do next since I'm not familiar with gdb. I'd like to be able to use gdb to inspect assembly code. That's what I was told on IRC.</p>