eklitzke.org

repz stosb

Go Compiles Infinite Loops Very Efficiently

This Go compiler will compile this code:

func init() {
start:
    goto start
}

into:

0000000000401000 <main.init.1>:
  401000:       eb fe                   jmp    401000 <main.init.1>