Re:Nvidia's Arm deal sparks quick backlash in chip industry
by pjmlp on Monday September 14, 2020 @02:24PM
(#24473382)
My point is not an universal IR that can compile every C program ever written, rather an IR that is compliant wiht the abstract C machine as defined by ISO C, and that has been done multiple times.
[ Parent
| on HN ]
Re:Nvidia's Arm deal sparks quick backlash in chip industry
by MaxBarraclough on Monday September 14, 2020 @02:38PM
(#24473522)
Right, sure, we don't disagree. Strictly speaking, what you've described is trivial:
1. Fork the RISC-V ISA, but brand it as an IR rather than as an ISA intended for hardware implementation
2. Port a C compiler to target your new ISA
3. Port QEMU to execute your new ISA
There you go, you can now compile C to your novel representation, and you can use QEMU to run C programs that have been compiled to it.