News for hackers. Stuff that matters.
Re:Run RISC-V Binaries on AMD Zen-Series CPUs via Microcode ... by dzaima on Wednesday April 09, 2025 @07:50PM (#43639219)
Directly running wasm/Java bytecode in hardware is just a bad idea unless you somehow have tons of loopless code that'll only be run once; both are stack-based with an unbounded stack size, so each op would have multiple memory loads/stores. At the very least you'd want some rewriting to use multiple registers, at which point a simple JIT/AOT isn't far off.
Re:Run RISC-V Binaries on AMD Zen-Series CPUs via Microcode ... by monocasa on Wednesday April 09, 2025 @07:57PM (#43639267)
At least for jazelle, R0-R3 were an alias for top of stack, which removed a lot of memory accesses for the stack nature of the ISA.
Re:Run RISC-V Binaries on AMD Zen-Series CPUs via Microcode ... by AstralStorm on Wednesday April 09, 2025 @08:03PM (#43639300)
And that still ultimately proved slower than JIT and AOT sped up JIT.
Re:Run RISC-V Binaries on AMD Zen-Series CPUs via Microcode ... by monocasa on Wednesday April 09, 2025 @08:09PM (#43639338)
And it wasn't targeting devices that had enough spare RAM to run a JIT.