In some cases ocamlopt -g disabled some optimizations. This now seems to be fixed in 3.13, see http://caml.inria.fr/mantis/view.php?id=5426 .
Cheers, Josh > Dear all, > > Is there is any disadvantage of using -g with ocamlopt? > > A number of libraries are not compiled with -g and this prevents us from > getting a complete stack backtrace when they raise an exception. Are > there technical reasons for that, other than "this is an old library and > we haven't touched the Makefile since ocamlopt offers -g"? > > > Martin -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs