title: How do I compile assembly code so that I can see the hex byte code of it?
body: <p>I have a simple assembly code file called exit.s that looks like the following:</p>
  
  <pre><code>.text
  .globl _start
  _start:
          xor %eax, %eax
          mov %al, 1
          xor %ebx, %ebx
  </code></pre>
  
  <p>I would like to get the hex byte code of this. How would I do this on a linux machine?  What commands would I use?</p>