Search code examples
mipsmips32

What does "trap" mean in MIPS terminology?


What is trap and what does it do? Is it an instruction or part of the processor? Is it a concept related to how the MIPS works?


Solution

  • Synchronous exceptions, resulting directly from the execution of the program, are called traps.

    You can read more about traps here.

    Basically, a trap is an exception that occurs at the same place every time a program is executed with the same data and the same memory allocation