News for hackers. Stuff that matters.
Re:AT&T Hobbit by slacka on Tuesday February 04, 2020 @09:59PM (#22243613)
> It was based on the company's CRISP (C-language Reduced Instruction Set Processor) design. CRISP and Hobbit were optimized for running the C programming language.

Couldn't the same be said of any modern CPU short of the Java processors that have mostly failed?

Re:AT&T Hobbit by joezydeco on Tuesday February 04, 2020 @10:10PM (#22243667)
I took a university assembly language course (UIUC CS225) on the WE32100, which was the predecessor to the Hobbit. We worked on a stack of AT&T 3B2s donated to the college.

I distinctly remember the STRCPY opcode, which did exactly what you expected it to do.

https://imgur.com/a/auZlxwG

I have fond memories of that instruction set, but looking back now it's like looking at a loaded weapon.

Re:AT&T Hobbit by monocasa on Wednesday February 05, 2020 @07:00AM (#22245996)
Tons of classic CISC have strcpy memcpy, memmove, etc implemented as instructions. S/360 and x86 do too. The reason is that the early incarnations didn't have instruction caches, so you could get a ton of perf on these common operations by executing the move almost entirely of out of ucode, therby keeping the instruction fetches from conflicting with the data accsesses and stealing bus bandwidth. Like 2x-3x increased bandwidth typically.
Re:AT&T Hobbit by userbinator on Wednesday February 05, 2020 @08:22AM (#22246477)
That's still true with REP MOVS/REP STOS today in x86, it runs in an internal loop (and reads/writes cacheline-sized blocks if it can) while the rest of the CPU can continue executing other instructions in parallel. You can achieve similar results with vector instructions, but those tend to take up a lot of icache and also fetch bandwidth.
Re:AT&T Hobbit by Taniwha on Tuesday February 04, 2020 @10:31PM (#22243768)
The WE32100 was very emphatically not-RISC, much more VAXish if anything with x86 style call-gates stuffed on top
Re:AT&T Hobbit by RealityVoid on Wednesday February 05, 2020 @03:55AM (#22245109)
Huh, interesting. I don't know a lot about the various architectures, but with instructions like that, my intuition tells me you could do some really interesting stuff.

Coming from an embedded background, I'm wondering, could you not, for example, do a machine where you offload bulk memory operations to the memory controller itself? Copying memory, zeroing memory, moving memory around, all these things could happen at the memory controller level and you'd never need to put them on the actual bus. Perhaps there is something like this for some exotic architectures?

Re:AT&T Hobbit by pavlov on Wednesday February 05, 2020 @09:26AM (#22246884)
Something like the 1985 Amiga blitter chip?
Re:AT&T Hobbit by rvense on Wednesday February 05, 2020 @10:46AM (#22247751)
I've seen obscenely complicated DMA controllers that can do that and more. Check the NXP iMX6 SDMA peripveral for instance.
Re:AT&T Hobbit by RealityVoid on Wednesday February 05, 2020 @11:46AM (#22248521)
It would still put it in the bus, tho, no?

I'm wondering now how these processors/MCU's handle bus access since you have so many peripherals that probably want to access it as well as the CPU acceses that need to happen. Certainly you have to have a priority settling mechanism and some way of arbitrating the resource. The CPU probably doesn't use it all the time, but if you have a pipeline, it probably uses it in the background anyway.

Re:AT&T Hobbit by joezydeco on Wednesday February 05, 2020 @02:56PM (#22250441)
On ARM there's a whole series of controller blocks that sit between the CPU caches and the outside world. Start looking up the AMBA (Advanced Microcontroller Bus Architecture) and you'll see how complicated it gets:

https://developer.arm.com/architectures/system-architectures...

Re:AT&T Hobbit by p_l on Wednesday February 05, 2020 @07:43AM (#22246254)
Modern CPUs can be efficient target for C, but that's mostly because C standard is full of "undefined behaviour" for a ton of stuff - so that compilers can do weird things to optimize for hardware.
Re:AT&T Hobbit by brians on Tuesday February 04, 2020 @10:01PM (#22243629)
Not like the CRISP! It implemented the C call stack in hardware, with no registers—almost every instruction directly addressed memory, or the register-like arguments on top of the stack.
Re:AT&T Hobbit by kick on Tuesday February 04, 2020 @10:15PM (#22243691)
No, certainly not. The ones that weren't mostly failed, though, yes, although the ones that are aren't optimized in the same way.