From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,16e3a8dd4f3ab3f3 X-Google-Attributes: gid103376,public From: l117593@cliffy.lfwc.lockheed.com (Cordes MJ) Subject: Re: Elaboration order Date: 1996/03/21 Message-ID: <4isl6j$pll@cliffy.lfwc.lockheed.com>#1/1 X-Deja-AN: 143613438 references: <314701A1.469D@lfwc.lockheed.com> <31494143.3825@lfwc.lockheed.com> <4icbnc$cda@wdl1.wdl.loral.com> <314D2E1C.5C72@lfwc.lockheed.com> <4in4am$klb@watnews1.watson.ibm.com> <4inpiv$alk@cliffy.lfwc.lockheed.com> organization: Lockheed Martin Tactical Aircraft Systems newsgroups: comp.lang.ada Date: 1996-03-21T00:00:00+00:00 List-Id: Robert Dewar (dewar@cs.nyu.edu) wrote: : Mike says : "As an aside to the RM discussion of this thread, how do I know : that Ada compiler X will generate the correct (as defined in : the RM) elaboration order? : I know that ACVC tests do not guarantee correct code generation. : Is the ACVC suite more complete when it comes to elaboration? Is : there a standard benchmark used by compiler vendors? Or, for safety : critical functions, should I verify this for every application : build?" : Of course the ACVC suite does not guarantee that a compiler gets the : order of elaboration correct in every case. Your question seems to : imply that you expected the ACVC suite to guarantee correct code : generatoin and that the reason that it does not is that it is not : complete. This is a serious misconception. No test suite can ever : guarantee that a compiler has no errors -- indeed, except for very : trivial programs, no set of tests ever guarantees accuracy. You are reading things into the question which were not there. I was simply asking if it was generally held that elaboration order algorithms are safer or better tested than code generation algorithms. : For safety critical applications, you cannot trust ANY aspect of a compiler : or any other tool that you use, and you need to carefully verify EVERYTHING : about your program -- at least, put it this way, if you write the code for : a plane that I will fly on, I will expect this! Not exactly - industry cannot afford to verify *all* aspects of a program. Risks are identified and analyzed and base on the analysis, something may be done (e.g., redundancy, backup systems, additional testing). This is true for all systems which go on a plane - not just SW. A good software specific example is branch level testing vs path testing. We do not perform full path testing of our applications because it (path testing) is not cost effective. We perform other cost effective testing on the application to reduce any and all risks to reasonable levels. : Are there ACVC tests to test order of elaboration? Sure! : Do they help ensure that compilers are correct in this respect? Sure! : Do they guarantee that compilers are correct in this respect? NO! THANKS! -- --------------------------------------------------------------------- Michael J Cordes Phone: (817) 935-3823 Fax: (817) 935-3800 EMail: CordesMJ@lfwc.lockheed.com ---------------------------------------------------------------------