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,325a055bed62c230 X-Google-Attributes: gid103376,public From: kilgallen@eisner.decus.org (Larry Kilgallen) Subject: Re: Apex vs GNAT on solaris Date: 1999/12/08 Message-ID: <1999Dec8.103922.1@eisner>#1/1 X-Deja-AN: 558181106 References: <82hiuj$74o$1@nnrp1.deja.com> <82hnll$ahu$1@nnrp1.deja.com> <384cfdb3.691883075@newsnew.draper.com> <82ku6s$jhi$1@nnrp1.deja.com> <384e52db.779218947@newsnew.draper.com> X-Trace: news.decus.org 944667565 20078 KILGALLEN [216.44.122.34] Organization: LJK Software Reply-To: Kilgallen@eisner.decus.org.nospam Newsgroups: comp.lang.ada Date: 1999-12-08T00:00:00+00:00 List-Id: In article <384e52db.779218947@newsnew.draper.com>, rracine@myremarq.com (Roger Racine) writes: > On Wed, 08 Dec 1999 06:35:08 GMT, Robert Dewar wrote: > >>In article <384cfdb3.691883075@newsnew.draper.com>, >> rracine@myremarq.com (Roger Racine) wrote: >>> Many people will assume that the default options are the most >>> reliable options. >> >>They will assume wrong. For example, in the case of GNAT, >>we let -O0 be the default because that is traditional in >>all gcc compilers. We make inlining off the default, because >>that seems more compatible with -O0 as the default. >> > > That is a pretty questionable reason for creating a default. Perhaps > compiler documentation should state reasons for using the various > options. Of course, a given vendor might not want to say "turn > optimization on only as a last resort, since it is not well tested", > but certainly ACT (from what you say) should tell their users to turn > it on. Certainly compiler documentation should state the purpose of various options. I don't understand how, absent such a statement, one would know that such an option exists. Are there vendors whose documentation says "we have an option called /FOOBAR, but we won't tell you what it does" ? >>They will assume wrong, there is no "best options", there is >>only the appropriate options for your particular use. >> > > I do not know about your experience, but for me, with embedded system > compilers (which tend to have comparatively few users compared to > workstation compilers), for numerous languages over the years, it has > always been dangerous to change the default optimization options. ACT > might want to reconsider their default. I would believe Ada programmers to be a more discriminating bunch, expecting features to have been tested, making incidents where an adjustment to optimization options introduces "danger" to be less frequent. Furthermore, I would believe Ada programmers to expect the vendor would fix anomolies encountered in this fashion. Most of all, I expect Ada programmers to test their resulting programs. ACT might change their default, but misbehavior by other compilers would be a silly reason to do so. Larry Kilgallen