This may seem like a bunch of silly question, but i am very new to ocaml, so here they come:
We know that OCaml bytecode compiler “ocamlc” compiles OCaml source files to bytecode object files and links these object files to produce standalone bytecode executable files.
Now, dune can be also set to build bytecode executables with *.bc extension.
So, which tool(s) does dune use internally to achieve this? Does it use “ocamlc” internally?
Are there any tools available to peek inside bytecode files produced by “ocamlc” and dune apart from just hex editors? But tools able to reflect the inner structure of the said files.
Is internal format of ocaml bytecode and native files documented anywhere? I mean similar to, say, PE files format?
Thanks in advance!