Re:What do RISC and CISC mean in 2020?
by pizlonator on Friday November 20, 2020 @11:29PM
(#25167876)
They’re extremely useful in JITs where they arise all the time.
WebKit’s JIT uses them about as frequently as an AOT like llvm would emit a relocation, maybe more.
Re:What do RISC and CISC mean in 2020?
by idividebyzero on Sunday November 22, 2020 @12:01PM
(#25178953)
Well, this is not completely true. As said, JIT employs absolute addresses a lot, and for instance, you can use `lea` to compute the absolute address of a variable at runtime (with PC-relative addressing mode). Said that, I still see `movabs` of an hardcoded address (not necessarily a hardware register) into a register and then a call to it (and this continues to be position-independent code). Also, if I remember correctly, the __TEXT segment is not randomized by default on Linux.
Re:What do RISC and CISC mean in 2020?
by stephencanon on Saturday November 21, 2020 @10:11AM
(#25170122)
macOS has the commpage, which caches CPU feature flags and other configuration information.
They are common in embedded software though. Different RISC arches handle this differently. ARM usually uses a constant pool after functions, relative PC-addressed. PowerPC usually builds 32-bit literals in two instructions each containing 16 bits. Both of those have the ~same overhead at 32 bits, but at 64 bits the constant pool version wins. But then again, any 64-bit system is unlikely to be small enough to be running embedded style code with absolute addresses anywhere that matters, so...