Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C Moderated > Re: what's cons...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 13 Topic 910 of 1142
Post > Topic >>

Re: what's consensus or standard on what should "while(1){}" do? loop forever or do nothing?

by mainargv@[EMAIL PROTECTED] Mar 5, 2007 at 08:42 PM

On Mar 1, 10:36 am, Kenneth Brody <kenbr...@[EMAIL PROTECTED]
> wrote:
> maina...@[EMAIL PROTECTED]
 wrote:
>
> > hi
>
> > what's consensus or standard on what should "while(1){}" do? loop
> > forever or do nothing? thanks
>
> The "consensus" isn't really relevent.
>
> It will do exactly what you have told it to do -- loop forever doing
> nothing.  What makes you think that another option is available?
>
> On my particular implementation, the compiler generates this code:
>
>     $L523:
>         jmp $L523
>
> --
> +-------------------------+--------------------+-----------------------+
> | Kenneth J. Brody        |www.hvcomputer.com| #include              |
> | kenbrody/at\spamcop.net |www.fptech.com    |    <std_disclaimer.h> |
> +-------------------------+--------------------+-----------------------+
> Don't e-mail me at: <mailto:ThisIsASpamT...@[EMAIL PROTECTED]
>
> --
> comp.lang.c.moderated - moderation address: c...@[EMAIL PROTECTED]
 -- you
must
> have an appropriate newsgroups line in your header for your mail to be
seen,
> or the newsgroup name in square brackets in the subject line.  Sorry.


my particular compiler will do differently depends on something
else...
I'm just not too sure which way to interpret it. doing nothing forever
can in some sense as not doing it in the first place (humans will
reach this sort of conclusion anyway.)
-- 
comp.lang.c.moderated - moderation address: clcm@[EMAIL PROTECTED]
 -- you must
have an appropriate newsgroups line in your header for your mail to be
seen,
or the newsgroup name in square brackets in the subject line.  Sorry.
 




 13 Posts in Topic:
Re: what's consensus or standard on what should "while(1){}" do?
mainargv@[EMAIL PROTECTED  2007-03-05 20:42:11 
Re: what's consensus or standard on what should "while(1){}" do?
"Douglas A. Gwyn&quo  2007-03-10 12:48:55 
Re: what's consensus or standard on what should "while(1){}" do?
"Edward Rosten"  2007-03-29 01:20:48 
Re: what's consensus or standard on what should "while(1){}" do?
Francis Glassborow <fr  2007-04-16 15:17:15 
Re: what's consensus or standard on what should "while(1){}" do?
"Edward Rosten"  2007-04-19 14:13:18 
Re: what's consensus or standard on what should "while(1){}" do?
Keith Thompson <kst-u@  2007-04-19 14:13:57 
Re: what's consensus or standard on what should "while(1){}" do?
Mark L Pappin <mlp@[EM  2007-04-21 12:16:06 
Re: what's consensus or standard on what should "while(1){}" do?
"Douglas A. Gwyn&quo  2007-04-16 15:17:20 
Re: what's consensus or standard on what should "while(1){}" do?
"Douglas A. Gwyn&quo  2007-04-16 15:17:18 
Re: what's consensus or standard on what should "while(1){}" do?
"Edward Rosten"  2007-03-29 01:30:47 
Re: what's consensus or standard on what should "while(1){}" do?
David Given <dg@[EMAIL  2007-04-16 15:17:05 
Re: what's consensus or standard on what should "while(1){}" do?
Kenneth Brody <kenbrod  2007-04-16 15:17:08 
Re: what's consensus or standard on what should "while(1){}" do?
"JT" <jackt1  2007-04-16 15:17:45 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Aug 27 18:07:36 CDT 2008.