logoalt Hacker News

vardumptoday at 2:57 PM0 repliesview on HN

Might be an interpreter or an emulator. That’s where you often want to preserve registers or flags and have jump tables.

This is one of the remaining cases where the current compilers optimize rather poorly: when you have a tight loop around a huge switch-statement, with each case-statement performing a very small operation on common data.

In that case, a human writing assembler can often beat a compiler with a huge margin.