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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ca9eef4d5e2078ea X-Google-Attributes: gid103376,public From: Ken Garlington Subject: Re: Beware: Rep spec on an enumeration type causes code explosion Date: 1997/12/06 Message-ID: <3489D957.65C3@nospam.flash.net>#1/1 X-Deja-AN: 295868235 References: Reply-To: Ken.Garlington@nospam.computer.org Organization: Flashnet Communications, http://www.flash.net Newsgroups: comp.lang.ada Date: 1997-12-06T00:00:00+00:00 List-Id: Joe Gwinn wrote: > > Question. Is there an Ada95 FAQ or the like, full of suitably dire > warnings? I have seen very useful and widely used published books of such > things for C and C++, but have never seen anything like it for Ada95. If > there isn't yet one, perhaps we should develop one, for our mutual > protection. Two sources of information come to mind: 1. For general "warnings" of this type, you may wish to try the Ada Quality & Style Guide, which is available from http://sw-eng.falls-church.va.us/AdaIC/ For example, using the handy search feature for "enumeration representation", one finds the statement: "Only if absolutely necessary, use representation clauses to match requirements of external devices." 2. Check with your compiler vendor for available tool-specific documentation. TI/Tartan compilers, for example, come with a fairly good section on writing for optimization, and include a list of bugs (including those affecting optimization). If your vendor can't, or won't, provide such information, and you really need it, then consider a change of vendor!