From: Franck.Cassez@kelenn-gw.univ-brest.fr (Franck Cassez)
To: Jean-Christophe.Filliatre@ens-lyon.fr
Cc: caml-list@inria.fr
Subject: Re: compilation
Date: Wed, 19 Feb 1997 09:12:53 +0100 (MET) [thread overview]
Message-ID: <199702190812.JAA26519@kelenn-gw.univ-brest.fr> (raw)
Bonjour Jean-Christophe,
concernant les evaluations a la compilation,
j'avais pose une question similaire a Pierre Weis
l'annee derniere (mon but etait
d'``accelerer'' un programme): je pense que l'exemple suivant
peut t'interesser.
A+
Franck.
- Franck.Cassez@univ-brest.fr - Departement d'Informatique -
-- Universite de Bretagne Occidentale 6, Avenue Le Gorgeu --
---- BP 809 ---- 29285 Brest Cedex ---- FRANCE ----
-- tel: (+33) 02 98 01 69 59 -- fax: (+33) 02 98 01 69 56 --
dixit Pierre :
Je m'explique soit la fonction f:
let f a x = if a then (x + 1) else (x - 1);;
alors f true est la fonction x -> if true then (x + 1) else (x - 1) et non
pas la fonction x -> x + 1
On obtient une petite acce'le'ration en e'crivant:
let f a = if a then (fun x -> x + 1) else (fun x -> x - 1);;
car alors f true est (fun x -> x + 1). Cependant cette propagation des
constantes par le compilateur du (me'ta)-langage n'est pas de bonne
me'thodologie (elle n'est pas efficace). Pour beaucoup gagner il faut
re'aliser un ve'ritable compilateur qui analyse les programmes sources
du langage a` compiler et les optimise lui-me^me.
next reply other threads:[~1997-02-19 8:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-02-19 8:12 Franck Cassez [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-02-13 15:24 compilation Jean-Christophe Filliatre
1997-02-18 15:26 ` compilation David Monniaux
1997-02-18 16:53 ` compilation Xavier Leroy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199702190812.JAA26519@kelenn-gw.univ-brest.fr \
--to=franck.cassez@kelenn-gw.univ-brest.fr \
--cc=Jean-Christophe.Filliatre@ens-lyon.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox