News for hackers. Stuff that matters.
Re:Linux on an 8-Bit Micro? (2012) by 0815test on Friday April 26, 2019 @09:41PM (#19763246)
Interesting. Making it run RISC-V rather than ARM would provide slightly quicker emulation, I believe. (And indeed, more generally, running a RISC-V VM provides a quick way of enabling modern 64-bit code to run even on hardware that's restricted to a 32-bit address space. Given that there's a lot of such hardware around, even of quite recent vintage, this can be practically helpful.)
Re:Linux on an 8-Bit Micro? (2012) by dmitrygr on Friday April 26, 2019 @09:47PM (#19763264)
Riscv didn't exist when I wrote this. Even now it doesn't exist (it will "exist" when someone ships a billion somethings with it in it)
Re:Linux on an 8-Bit Micro? (2012) by sitkack on Friday April 26, 2019 @10:04PM (#19763316)
I absolutely love your 8-bit Linux and plan on building one after I finish my relay computer.

The billion cores mark for RISC-V will be somewhere around the middle of 2020 thanks to Western Digital and Microsemi.

https://www.forbes.com/sites/tiriasresearch/2017/12/06/weste...

> What many do not realize is that the company ships over 1 billion processor cores within its products each year and is moving toward 2 billion per year.

https://hackaday.com/2019/02/13/western-digital-releases-the...

> Last year, Western Digital made the amazing claim that they will transition their consumption of silicon over to RISC-V, putting one Billion RISC-V cores per year into the marketplace.

https://www.microsemi.com/product-directory/mi-v-embedded-ec...

Re:Linux on an 8-Bit Micro? (2012) by dmitrygr on Friday April 26, 2019 @10:10PM (#19763339)
Oh, I do realize it. But it is 2019 so my statement holds as true :)
Re:Linux on an 8-Bit Micro? (2012) by 0815test on Friday April 26, 2019 @09:59PM (#19763301)
Yup, of course. Today it "exists" as a supported architecture in Linux, however... so it makes sense as a suggestion to whoever may want to try something broadly similar, but in a way that can even be practically useful. (Almost all current ISAs other than RV itself have historical warts that can slow down not just hardware implementations but emulation a lot... that's one of the reasons RV was made in the first place!)
Re:Linux on an 8-Bit Micro? (2012) by cesarb on Saturday April 27, 2019 @09:25AM (#19765374)
> Almost all current ISAs other than RV itself have historical warts

RISC-V doesn't have historical warts only because it's too new for any warts it has to be considered historical.

> that can slow down not just hardware implementations but emulation

RISC-V shuffles the immediate bits on its instruction encoding to speed up decoding the immediate in hardware, but this slows down decoding the immediate in software. This will in the future probably be considered one of RISC-V's "historical warts".

Re:Linux on an 8-Bit Micro? (2012) by 0815test on Saturday April 27, 2019 @12:29PM (#19766304)
> RISC-V shuffles the immediate bits on its instruction encoding to speed up decoding the immediate in hardware

You're right that this might be a problem, in principle. Surprisingly enough, however, RV is actually more than competitive as a system-level virtual ISA. People have experimented with this on existing emulation platforms, and that was the result they got.

Re:Linux on an 8-Bit Micro? (2012) by johnklos on Friday April 26, 2019 @10:23PM (#19763381)
It exists, even without a billion somethings.