News for hackers. Stuff that matters.
Re:CPU registers and OCaml by pcwalton on Sunday June 21, 2015 @12:43PM (#9754019)
A lot of register allocators can rematerialize, though, and that can have much the same effect. (ax and xx should be candidates for rematting.)
Re:CPU registers and OCaml by rayiner on Sunday June 21, 2015 @01:21PM (#9754149)
Good point. Though rematerialization is still pretty rare considering the entire universe of compilers (e.g. Academic projects like Ocaml was).
Re:CPU registers and OCaml by pcwalton on Sunday June 21, 2015 @01:22PM (#9754158)
Yeah, I was always under the impression that ocamlopt is fairly Plan 9-like; it produces medium quality code quickly, and doesn't have the full suite of compiler optimizations that projects like LLVM or HotSpot have.