title: Running luajit object file from C
body: <p>From the documentation: <a href="http://luajit.org/running.html" rel="noreferrer">http://luajit.org/running.html</a></p>
  
  <pre><code>luajit -b test.lua test.obj                 # Generate object file
  # Link test.obj with your application and load it with require("test")
  </code></pre>
  
  <p>But doesn't explain how to do these things. I guess they're assuming anyone using Lua is also a C programmer, not the case with me!  Can I get some help? GCC as an example.</p>
  
  <p>I would also like to do the same thing except from the C byte array header. I can't find documentation on this either.</p>
  
  <pre><code>luajit -bt h -n test test.lua test.h
  </code></pre>
  
  <p>This creates the header file but I don't know how to run it from C. Thanks.</p>