notes

Personal notes
git clone git://git.laack.co/notes.git
Log | Files | Refs

JumpTable.md (413B)


      1 # Jump Table (Branch Table)
      2 
      3 **Source:** Performance Aware Programming
      4 
      5 **Definition:** A jump table is an ordered collection of pointers to functions or instructions.
      6 
      7 In high level languages like C++, a jump table could be a std::vector of function pointers which may be invoked by indexing into the specific function and executing it.
      8 
      9 Branch tables are often used by compilers to represent switch statements.