title: How can I map OCaml bytecode to its original source code location?
body: <p>Is there some nice feature of the format or library for going from some part of the bytecode to the line of code it originally came from? This would obviously be useful for debugging and error messages.</p>
  
  <p>In particular, I'm looking at how hard it would be to add support for <a href="http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/" rel="nofollow">source maps</a> to <a href="http://ocsigen.org/js_of_ocaml/" rel="nofollow">js_of_ocaml</a>. </p>