3 ms·
I'm not sure what this has to do with my comment. I am aware of all of this. It would be nice if an infinite loop was defined to be 'do nothing, indefinitely'.
by rcxdude 15d ago
I'm not sure what this has to do with my comment. I am aware of all of this. It would be nice if an infinite loop was defined to be 'do nothing, indefinitely'. On architectures with an instruction that works that works precisely that way, it could be turned into that, perhaps, but that's an implementation detail and should follow the as-if principle (I'm also not sure any compiler would bother).
- teo_zero 15d ago> I'm not sure what this has to do with my comment Because you explicitly mentioned details that belong in the implementation, not in the semantic: > A halt/abort instruction that trashes [the] state would be undesirable If you want to attach a debugger, then use a breakpoint, don't try to obtain the same effect within the code.