N
Nick Keighley
Nick Keighley said:wrote: news:3f734b2b-2d8a-4c73-81e3-3c43e39e16f7@y10g2000vbn.googlegroups.com...>
If the HLL is correct the machine code is correct [...]
you're a dissembling so and so aren't you? Every time you quote me I
have to check you got the quote right. What was written was:-
*********************************************
a) "Verifies" how?
um... "verify" n. to confirm the correctness of.
If the HLL is correct the machine code is correct (barring unobserved
side effects). Do these happen a lot?
*********************************************
You had trouble with "verifies" so I simplified it for you. It is
plain in context I'm talking about verification.
This assumes the HLL code and machine code are 100% identical.
well yes. As far as the side effects of evaluation are concerned they
*are* identical. How can you execute the HLL without executing the
machine code?
That assumes
the compiler is 100% perfect in it's translation.
no. I assume compilers are very very good. I tend to truct the
implementors.
and no. Because testing the hLL will reveal potential compiler bugs.
That also assumes the
libraries are 100% perfect in their implementation. The HLL code can be
100% correct syntactically and the generated machine code can be wrong.
library bugs are commoner than compiler bugs. But as above.
[...] whatever was "verified" didn't trigger or run
into the error.doesn't this apply to both HLL and machine code?
If you can interpret the HLL code and you can compile it to machine code
too, then yes. Otherwise, no, it only applies to the machine code since the
HLL can't be fully "verified" except by compiling it to machine code.
many 9's close though.
Machine code is validated as a side-effect of HLL validation.
[...]
And, just because a program currently works correctly with
the input sets you've tried, doesn't mean it will later with a
different data set or different combination of user selections.this applies to all forms of testing. [...]
If you don't take issues here, why do you do so above?!
what?
what makes you think verifying machine code is any easier
than verifying HLL code?
I didn't say it is.
so why do you recomemnd examining the machine code?
I really don't understand what you are getting at. From my point of
view, looking at the assmbler is another form of verification. I don't
see it as a useful or cost effective one.
By compiling and studying the output for all the language elements, type
conversions, etc you use to understand if your compiler is emitting them
correctly,
ah! So you are essentially validating the compiler. I suspect high
levels of optimsation will render this useless. Like I've said the
rate of compiler bugs seems so low I leave that to compiler
developers. And so do most people I know.
or that your understanding of what the HLL code does is correct
in terms of the assembly. You don't have study the entire output of a large
program.
ok. Misunderstood you.