You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Maksim Ananjev <ma...@gmail.com> on 2007/04/01 13:25:15 UTC

Re: [drvm][jit] Jitrino.opt with no optimizations

To Pavel & Egor

Thanks. That helps.

27 Mar 2007 11:34:03 +0400, Egor Pasko <eg...@gmail.com>:
> On the 0x2A5 day of Apache Harmony Maksim Ananjev wrote:
> > Hi!
> >
> > I want have to have my code compiled by Jitrino.opt with _all_
> > optimizations turned off. The idea is to get "clean" versions of HIR
> > and IA32 LIR  (especially, LIR generated out for the code, that hadn't
> > been optimized). I need it for debugging purposes.
> >
> > (Jitrino.jet isn't useful here, because it has no intermediate representations)
> >
> > Is there a command line option to do it? I looked here:
> > http://wiki.apache.org/harmony/DrlvmCommandLineOptions, but found
> > nothing.
> >
> > Or, maybe,  something in source code code of jit should be changed to
> > turn off all optimizations?
>
> You can edit the deploy/jdk/jre/bin/default/opt.emconf and put a '-'
> sign after each optiization pass you want to skip. Some optimization
> passes are mandatory such as emitter.
>
> Please also keep in mind that some optimizations are not guaranteed to
> work correctly in case some prior optimizations are off.
>
> --
> Egor Pasko
>
>


-- 
Maksim