From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: From: Richard Miller <9fans@hamnavoe.com> Date: Thu, 6 Sep 2018 18:48:02 +0100 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset="UTF-8" Subject: Re: [9fans] Is Plan 9 C "Less Dangerous?" Topicbox-Message-UUID: e2a46c5c-ead9-11e9-9d60-3106f5b1d025 > It could be, but after having looked briefly at the size of the design for > RISC-V Rocket and especially BOOM I wonder if it's all overly complicated. > They even built their own high level hardware language (Chisel) that > generates Verilog using Scala. Yuck. It's possible to build a simple and perfectly usable RISC-V processor on an FPGA in verilog. The one I use is https://github.com/cliffordwolf/picorv32 , written by Clifford Wolf. Its small size means it can be (and has been) formally verified, and (for some applications at least) you can compensate for the modest performance by putting lots of them on one chip. > Also, there's appears to be quite alot of compiler optimizations in gcc for > RISC-based chips. Again, it's possible to build a simple and perfectly usable C compiler for RISC-V without going overboard with optimisation. I've been working on re-targeting the Plan 9 C toolchain for RISC-V. It's at the stage where it can successfully compile itself, but floating point support is not yet complete. If anyone is interested, let me know.