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.