Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Functors
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Olivier Grisel <olivier.grisel@e...>
Subject: Re: [Caml-list] Functors
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alain.Frisch@ens.fr a écrit :
| On Thu, 6 May 2004, Jon Harrop wrote:
|>Morever, static analysis tools do not generally correctly work on
|>functorized programs: so a source-to-source defunctorizer as ocamldefun
|>can be used by these tools while a defunctorizer directly included in
|>the compiler cannot.
|
|
| To rephrase it: since some static analysis are difficult to perform on
| fonctors, it is good to have a standalone defunctorizer (not burried
| into the compiler) to be used as a first pass of the analysis.
|

Yes, but what about embedding ocamldefun as option/switch in the
compiler's command. Users could see it as another optimization option
easy enough to trigger by just adding or removing a flag in the makefile.

Those who wants to perform static analysis could use some other switch
to explicitely dump the defunctorised source code, eg :

$ ocamlopt -dump-defun foo.ml > defun_foo.ml

best
- --
Olivier
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAmoNcTsBRE+WZ2SARAhTDAJ9liZz3MSVD0h0opFPTGSR8JJnyUQCgts+m
saP/ghOn3b5RRpFYIstOP+g=
=rIIi
-----END PGP SIGNATURE-----

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners