Hacker News new | ask | show | jobs
by notanotherycom1 2050 days ago
Damn dude. I never thought of that.

So are you here right now declaring that RISC-V and all those companies are in the wrong and risc-v will be a disaster?

Cause I might agree and be with you on that lol

-Edit- I have no idea what the state of the compiler is

https://github.com/riscv/riscv-gnu-toolchain

> Warning: git clone takes around 6.65 GB of disk and download size

WTF?

If you're going that complex than... wtf?

1 comments

Not at all, RISC-V doesn't need extremely clever compilers, and instead it's designed to maximize what the microarchitectures (hardware implementations) can do, and reduce unnecessary overhead.

My reply was mostly aimed at the idea that you can move the complexity from hardware into compilers: it might be possible, but we know how to build out-of-order CPU better than we know how to build smart compilers, so you have to invest a lot more research time, and it's generally a lower priority.

Even innovations from the past decade or two, like VSDG, haven't made their way into "industrial" compilers yet.

As for the size thing:

GCC and Clang are huge (at least when you include their entire change history, which git does), RISC-V is comparatively only a tiny part of them, you should probably look into that further before jumping to conclusions.

You don't even need a whole separate toolchain with Clang or Rust, the whole "need to build GCC yourself to cross-compile" is outdated GNU tradition, not some kind of technical necessity.