POV-Ray : Newsgroups : povray.off-topic : Coolest thing EVER! : Re: Coolest thing EVER! Server Time
7 Sep 2024 19:15:50 EDT (-0400)
  Re: Coolest thing EVER!  
From: scott
Date: 2 Sep 2008 02:32:05
Message: <48bcdde5@news.povray.org>
>> A hundred maybe, but a million?
>
> Last time I checked, the IA32 instruction set is *very* complex. I doubt 
> it's got any simpler since then...

But still, presumably you write your emulator in such a way that the most 
common instructions (that usually take 1 or just a few clock cycles) are 
emulated as fast as possible.

I would guess emulation is a prime candidate to be written in assembler, 
where you can just have a huge branch table for each instruction type, then 
jump the real CPU program counter into that table based on the op-code.  In 
that way, I would imagine you can get away with even a factor of 10 
slow-down for the common instructions.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.