4 ms·
Then make it an optional feature software has to check for. God knows riscv is fragmented enough already...
by moonchild 3y ago
Then make it an optional feature software has to check for. God knows riscv is fragmented enough already...
- zamadatix 3y agoOn one hand, it seems fine to allow the CPU to run anything for the family without requiring the compiler make up to 2^n code paths of each routine that uses this kind of "sometimes implemented fast" feature in order for the binary to be portable across the family. On the other hand, it seems useful to allow the compiler to choose when such optimizations might be worthwhile. Maybe, rather than require software to always check, it'd be good enough to let there be a CPU flag which hints at the implementation the compiler can optionally look at if it thinks it'd be worthwhile.