lkml.org 
[lkml]   [2003]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Flame Linus to a crisp!
John Bradford wrote:

> Could we not take this idea to it's logical extreme, and simply
> calculate the results of every opcode, on every value, for every state
> of all of the registers, and store them in an array of DIMMs, and
> simply look up the necessary results? I.E. a cpu which is one _huge_
> look up table :-).

You can, if you can keep the internal state sufficiently small.
Say we want to keep the internal state down to 32 bit,
using a 16GB lookup table. (4G*32bit)

What would the state be? Perhaps one general-purpose
8-bit register, a 16-bit program counter and
8 bits left for the current opcode & flags.

Less opportunities than a 6502, but it'd sure be fast.

Helge Hafting


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.138 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site