Skip to Content.
Sympa Menu

coq-club - Re: Re: beginner's question

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: Re: beginner's question


chronological Thread 
  • From: Pierre Letouzey <Pierre.Letouzey AT lri.fr>
  • To: Klaus Weich <Klaus.Weich AT web.de>
  • Cc: coq-club AT pauillac.inria.fr
  • Subject: Re: Re: beginner's question
  • Date: Wed, 8 Aug 2001 01:11:56 +0200 (MEST)



On Mon, 30 Jul 2001, Klaus Weich wrote:

> Note that the ocaml-compiler (at least the native one) produces, for
> 
> (match f n1 n3 with Left -> Left | Right -> Right)
> 
> or
> 
> (f n1 n3)
> 
> the same code. I.e. this optimization is already done by the (native code) 
> ocaml-compiler.

Thanks for the information. I think I will nevertheless try to put this 
kind of optimizations in the extraction code, for two reasons: 

1) to produce readable code
2) this may enable some cascade simplifications that may not be done 
by the ocaml compiler. 

I'm strongly interested by further discussions on what optimizations user
may want on extracted code, but I will be away from my mail until the end
of August.

Pierre Letouzey






Archive powered by MhonArc 2.6.16.

Top of Page