3 ms·
Why overload an existing instruction at all ? Why not introduce a new instruction to accomplish this ? It seems very hacky.
by Aaargh20318 4y ago
Why overload an existing instruction at all ? Why not introduce a new instruction to accomplish this ? It seems very hacky.
- bodyfour 4y agoBecause then you can only use that instruction if you're sure the target CPU supports it... or else your program will crash. Sequences like "or r1, r1, r1" are going to be harmless when run on a processor that is unaware of its special meaning, which is exactly what you want for a "hint" instruction.