K
Keith Thompson
christian.bau schreef:
Boy, oh boy... I thought there would be some intelligent people here
who would know what an inserted break in such a loop actually would
result in in assemled code. That was the whole objective of the
question.
I'm not interested in answers trying to tell me that an example I
gave to clarify the -structural- problem is not a sensible program
or is bad code or that I do not follow holy standards. It's not
about the code, the question is about what an inserted break in any
loop (that is not optimized away of course in the real program, I'm
not that stupid, but I assumed some smartness of the reader here)
actually inserts in the assembled code. Actually, to just give you
an example, not even all code in K&R is sensible code, but allas.
C99 6.8.6.3p2:
A break statement terminates execution of the smallest enclosing
switch or iteration statement.
That is quite simply *all* we can tell you here. If you're asking
about what assembly or machine code will be generated, that's not a
question about C, and we can't answer it.
Since I will not and cannot display to you the full code I'll find
out myself what is happening. Anyway, thanks for the fish and the
(few) sensible answers.
The code you deleted when you posted your example was probably
critical to answering your question. I'm not sure what you expected
us to tell you.