title: Generating hex file using gcc
body: <p>I have a small C function and I want to make a hex file for it.</p>
  
  <p>Running </p>
  
  <pre><code>gcc -c in.c 
  </code></pre>
  
  <p>makes an object file But I need hex file for this standalone function.
  I need to put this on a separate location, so that I can simply JMP to this location from my main code. But I want this to be in hex format.</p>
  
  <p>I cant do a -</p>
  
  <pre><code>gcc -c in.c -o in.hex 
  </code></pre>
  
  <p>This is not working..
  Please help me out..</p>