×

Register reservation method for fast context switching in microprocessors

  • US 5,987,258 A
  • Filed: 06/27/1997
  • Issued: 11/16/1999
  • Est. Priority Date: 06/27/1997
  • Status: Expired due to Term
First Claim
Patent Images

1. A method of decreasing interrupt handling overhead time in a processor-based system by eliminating context save and context restore operations associated with interrupt handler routines, the system including a processor, the processor having a first register set and a second register set, the method comprising the steps of:

  • (a) providing an interrupt handler in a high level programming language;

    (b) providing a main program in the high level programming language;

    (c) compiling the interrupt handler into interrupt handler assembly code;

    (d) post-processing the interrupt handler assembly code by replacing accesses to the first register set with accesses to the second register set;

    (e) compiling the interrupt handler assembly code into interrupt handler object code;

    (e) compiling the main program into main program object code, the main program compiling step including the substep of invoking a compiler option which commands the compiler not to use the second register set; and

    (f) linking the post-processed interrupt handler object code and the main program object code.

View all claims
  • 7 Assignments
Timeline View
Assignment View
    ×
    ×