| |
fa.caml |
Hi, I'm trying to decrypt .cmo files produced by simple programs, such as According to the source of Ocaml, there's something called the Then, there's the address of what seems to be the last bytecode instruction. After that, I can't understand anything : there vaguely seems to be some Thanks, _______________________________________________
1+1;;
or
print_string "string";;
or
List.length [1;2;3;4;5];;
"cmo_magic_number", systematically written at the beginning of all .cmo
files. Does it have a real function for executing the programs, or is it just
a way to make sure the file contains ocaml bytecode ?
Then, the bytecode instructions, as documented in opcodes.ml.
information related to linking or so... What is the precise structure of this
part ? Is there some kind of a bytecode assembler ?
P.E. Meunier (pierreetienne.meun...@ens-lyon.fr)
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs