• Echo Dot
    link
    fedilink
    English
    16 months ago

    So is Reduced Instruction Set like in the old assembly days where you couldn’t do multiplication, as there wasn’t a command for it, so you had to do multiple loops of addition?

    • @Spedwell
      link
      English
      66 months ago

      Right concept, except you’re off in scale. A MULT instruction would exist in both RISC and CISC processors.

      The big difference is that CISC tries to provide instructions to perform much more sophisticated subroutines. This video is a fun look at some of the most absurd ones, to give you an idea.

      • @[email protected]
        link
        fedilink
        English
        2
        edit-2
        6 months ago

        ARM prominently has an instruction to deal with Javascript. And RISC-V will have those kinds of instructions, too, they’re too useful, saving a massive amount of instructions and cycles and the CPU itself doesn’t really need any logic added, the insn decoder just has to be taught a bit pattern and which microops to emit, the APUs already can do it.

        What that instruction will never do in a RISC CPU though is read from memory.

        On the flipside, some RISC-V macroops are CISC, fusing memory access and arithmetic. That’s an architecture detail, though, only affecting code to the degree of "if you want to do this stuff, and want it to run faster on some cores, put those instructions in this exact sequence so the core can spot and fuse them).

    • @AProfessional
      link
      English
      1
      edit-2
      6 months ago

      RISC-V is modular, so multiplication is optional but probably everything will support it.

    • @[email protected]
      link
      fedilink
      English
      16 months ago

      Nah, the Complex instructions are ridiculously complex and the Reduced ones can still do a lot of stuff.