▲ | zzo38computer 2 days ago | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
MMIX instruction set specifies the branch prediction explicitly. If you also have a "branch always" and "branch never" and the compiler can generate a code to modify that instruction during the initialization of the program, then for some programs where some of the branches are known during initialization, it might modify the code when it is initialized before it is executed. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | immibis 2 days ago | parent [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Pretty much every CPU has a "branch always" (it's called "branch" or "jump") and a "branch never" (it's called "nop"). The language support for this is the tricky part. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|