Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Should loop {} really loop indefinitely?

by hdb (Monsignor)
on Oct 07, 2013 at 11:39 UTC ( [id://1057249]=note: print w/replies, xml ) Need Help??


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() }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1057249]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-19 03:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found