| || |
How Compilers / Interpreters are Tested
Just Curious to know how Compilers and Interpreters - Better say JVM .....
are tested - If usual QC and methodology is adopted then it might end up 100/1000 LOC. or even more.
What approaches are adopted
What Tools are used ....
Did Anyone worked on this? If so, pl. share your experience.
Re: How Compilers / Interpreters are Tested
My assumption would be to look at the target language and write one sample program / piece of code for each and every feature. Perhaps look at the grammar being used and have a test case for every possible derivation. Massive task in any case.
E -> E + E / E - E /E * E
E -> alphanumeric
would mean you write atleast 4 test cases.