2 ms·
The posted program is one instruction too! main: ud2 (ud2 is a permanently illegal instruction on x86)
by nneonneo 7y ago
The posted program is one instruction too!
main:
ud2
(ud2 is a permanently illegal instruction on x86)
- CUViper 7y agoEven that `ud2` is only there because rustc sets the `TrapUnreachable` flag for LLVM. In older versions you would get nothing at all, so calling main would fall through to whatever was next in memory.