title: Bytecode Design?
body: <p>I'm designing a programming language which compiles to an intermediary bytecode.  However, I'm having a lot of trouble designing the bytecode structure.  Does anybody have any pointers on how to represent a program in binary?  Alternatively, are there any resources (preferably free) on how to do this?  The closest I've found is the <a href="http://luaforge.net/docman/index.php?group_id=83&amp;selected_doc_group_id=102&amp;language_id=1" rel="noreferrer">description of the Lua interpreter's bytecode</a>.</p>
  
  <p>EDIT: A bit more information: I'm implementing my own garbage collection scheme which is heavily optimized for immutability and concurrency.  For efficiencies' sake I need some unique bytecode instructions that allow programs to interact with the garbage collection scheme.</p>