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.151848.1@eisner>#1/1 X-Deja-AN: 558281327 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> <1999Dec8.103922.1@eisner> <384ea194.799371745@newsnew.draper.com> X-Trace: news.decus.org 944684336 27421 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 <384ea194.799371745@newsnew.draper.com>, rracine@myremarq.com (Roger Racine) writes: > For example, the GNAT documentation simply states that you get no > optimization with -O0, "normal optimization" with -O1, "extensive > optimization" with -O2, and automatic inlining with -O3. It does not > say anything about the speed of compilation difference, any debugger > deficiency with the various options, or any other reason one might > want to use one vs the other. Is everyone supposed to have to check > the compile time for each option? No, just those who care about the compile time. Certainly ACT cannot document the compile time, because differences in compile time will depend on how heavily the program being compiled uses the features that get more optimization. A very good heuristic is that more optimization takes longer during compilation. Another heuristic is that more optimization makes debugging at the machine code level harder, because the machine code layout bears less resemblence to the source code layout. ACT cannot document how much harder, because that is in the eye of the beholder. I have debugged a lot of Alpha machine code, but using GNAT I would be less well equipped than someone else because I am accustomed to looking at the output of a different code generator. Both of these heuristics can be combined into one easy-to-remember saying: "There ain't no such thing as a free lunch." Where the word "free" means anything I want it to mean :-). Larry Kilgallen