On Mon, Apr 09, 2007 at 02:59:39PM +0200, Sven Luther wrote: > One interesting question here, is what is the cost of adding those debugging > symbols ? Quoting from the OCaml manual (3.09) [1]: > Before the debugger can be used, the program must be compiled and > linked with the -g option: all .cmo and .cma files that are part of > the program should have been created with ocamlc -g, and they must be > linked together with ocamlc -g. > > Compiling with -g entails no penalty on the running time of programs: > object files and bytecode executable files are bigger and take longer > to produce, but the executable files run at exactly the same speed as > if they had been compiled without -g. So: no runtime penalty, only size increase. (Of course I'm speaking module the increased time the interpreter will need to load a bigger caml object, but that should be negligible most of the time). Cheers. [1] http://caml.inria.fr/pub/docs/manual-ocaml/manual030.html#c:debugger -- Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy zack@{cs.unibo.it,debian.org,bononia.it} -%- http://www.bononia.it/zack/ (15:56:48) Zack: e la demo dema ? /\ All one has to do is hit the (15:57:15) Bac: no, la demo scema \/ right keys at the right time
Attachment:
signature.asc
Description: Digital signature