top | item 9388137

One instruction set computer

63 points| pykello | 11 years ago |en.wikipedia.org | reply

25 comments

order
[+] arethuza|11 years ago|reply
At one point I was seriously fascinated by the lambda calculus and particularly the S and K combinators - two very simple functions that you can build any computation from:

http://en.wikipedia.org/wiki/SKI_combinator_calculus

More recently I found out about the U combinator which is a single combinator that can be used to define S & K:

http://en.wikipedia.org/wiki/Iota_and_Jot

Having a system that implemented recursion using the Y combinator in terms of S & K and have it actually compute stuff was rather amusing. I'd be fascinated to see what it would look like using just U.

[+] tptacek|11 years ago|reply
Here's a single-instruction computer built out of the page translation behavior of X86 processors:

http://events.ccc.de/congress/2012/Fahrplan/events/5265.en.h...

[+] SimonPStevens|11 years ago|reply
I wrote a little implementation of an OISC virtual machine many years ago [1]. Feel free to have a play. There are some sample 'one instruction assembler' programs in the test programs folder.

[1] - https://github.com/Creou/OISCVM

[+] j_baker|11 years ago|reply
I'm curious, is there any real-world application for this? Or is it mostly interesting from a research perspective?

It seems like this wouldn't perform very well in the real world for most applications, but I could see it being useful for very simple architectures.

[+] nulldozer|11 years ago|reply
My final year project was a hardware implementation of this. My group made an 8 core coprocessor and an OpenCL-like implementation complete with an LLVM IR to SUBLEQ translator. We actually got performance better than the proprietary NIOS II e soft processor on our image processing demo (Y colorspace conversion).
[+] jhallenworld|11 years ago|reply
Well it could be interesting as a test architecture for a new logic family as long as you have wide memory.

The Manchester Baby was the first programmable electronic computer and was close to a single instruction computer. It can emulate the single instruction computer with 5 of its 7 instructions: load, subtract, store, skip if negative and jump. The two extra instructions were halt and relative jump.

http://en.wikipedia.org/wiki/Manchester_Small-Scale_Experime...

[+] Chinjut|11 years ago|reply
How about the one instruction "RunInst a, b, c, d", whose behavior is defined as "Do the instruction described by parameter a in [your favorite architecture], upon parameters b, c, d"?
[+] baddox|11 years ago|reply
Yeah, the notion of "a single instruction" really doesn't mean a whole lot, just like how (in many languages) "a single line of code" doesn't mean much.
[+] jonsen|11 years ago|reply
I think you just reinvented assemblerprogramming.
[+] spiritplumber|11 years ago|reply
OISC is something you sometimes get to build in EE labs, usually as the last project for that class. It's something that you can put together out of 7400s and, at least in our case, an eeprom for a lookup table. It's a fun thing to do and I recommend it.
[+] tsmith|11 years ago|reply
I always thought MADD (Multiply + Add) made a great candidate for a single instruction set computer, if the program counter was usable as an operand to the instruction.
[+] guava|11 years ago|reply
You will want a way of decreasing registers, hence the subtract parts of the single instruction sets.