lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> No, the code generator does not do constant folding nor 
> common expression eliminations. It works hard on other 
> optimizations instead.

 Any plans to implement those then?  And while we're on the subject, what
are some of the other optimizations?

  Tom

> -----Original Message-----
> From: lua-bounces@bazar2.conectiva.com.br 
> [mailto:lua-bounces@bazar2.conectiva.com.br] On Behalf Of 
> Luiz Henrique de Figueiredo
> Sent: Thursday, June 17, 2004 4:54 PM
> To: lua@bazar2.conectiva.com.br
> Subject: Re: Optimizations during compilation
> 
> >  Will the compiler optimize things like this:
> >
> >io.write(20/4)
> >
> >  So the division is not carried out every time that statement is 
> >executed?
> 
> No, the code generator does not do constant folding nor 
> common expression eliminations. It works hard on other 
> optimizations instead.
> --lhf
> 
>