in reply to Should loop {} really loop indefinitely?

And how will you calculate the BogoMips?

  • Comment on Re: Should loop {} really loop indefinitely?

Replies are listed 'Best First'.
Re^2: Should loop {} really loop indefinitely?
by grondilu (Friar) on Oct 07, 2013 at 11:51 UTC

    Point taken. I guess it could be done with a special optimizer parameter, or with an explicit no-op instruction that would never be ignored from compilation.

    loop { no-op() }