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

Re: porting?



On Mon, 2 Feb 1998, Tamminen Eero wrote:

> > Actually, the Java VM only needs one optimisation to run well at those speeds:
> > There's a 240-case switch statement in the main interpreter loop. Convert it
> > to a jump table, and you gain _two_orders_of_magnitude speed increase.
> 
> Won't gcc do that that automatically with optimizations on?  Aren't
> those 240 cases cases of *byte*code (range 0-255) inctructions?

I have just compiled Atari800 emulator and checked the assembler output.
Yes, GCC does this automatically (for -O3 at least). But then the JVM
porting to Falcon should be as easy as make config; make; make
install?

Petr
--
    WWW: http://cas3.zlin.vutbr.cz/~stehlik                  PARCP developer
 e-mail: stehlik@cas3.zlin.vutbr.cz                         MiNTOS/Linux user
 mirror: http://www.cyberstrider.org/mirrors/stehlik/      AfterBurner040 owner