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,b87849933931bc93 X-Google-Attributes: gid103376,public X-Google-Thread: 1108a1,b87849933931bc93 X-Google-Attributes: gid1108a1,public From: fjh@mundook.cs.mu.OZ.AU (Fergus Henderson) Subject: Re: What is wrong with OO ? Date: 1997/01/12 Message-ID: <5bbead$gt3@mulga.cs.mu.OZ.AU>#1/1 X-Deja-AN: 209385340 references: <5acjtn$5uj@news3.digex.net> <32D11FD3.41C6@wi.leidenuniv.nl> <32D53473.4DAA423A@eiffel.com> <5b3kpk$2gba@uni.library.ucla.edu> <5b5jbn$joc@mulga.cs.mu.OZ.AU> organization: Comp Sci, University of Melbourne newsgroups: comp.lang.ada,comp.object Date: 1997-01-12T00:00:00+00:00 List-Id: dewar@merv.cs.nyu.edu (Robert Dewar) writes: >Fergus said > >"Hence this control should normally be expressed via >compiler options, rather than being embedded in the source code." > >Are you using GNAT? Nope, not at the moment, although I have used it in the past. >I would guess not, because you seem to assume that >is not the case, but in fact inlining is controlled by compiler options >in GNAT. I know that -- in fact, I don't know of any compiler that does any inlining for which you can't control the inlining with compiler options. But in Ada with gnat/gnatmake, the control is normally specified using a mixture of compiler options and embedded pragmas, and there is no way of getting maximum inlining without scattering pragmas throughout your code. This contrasts with e.g. SGI C++, which has command-line options that allow you to do full cross-module inlining without a single `inline' or pragma in your source code. >The pragma inlines merely enable the establishment of interunit >dependences. But the real interunit dependencies depend on the compiler options. If you're compiling with gnat/gnatmake without inlining enabled, but you have the pragmas scattered throughout your source code, then you will get some unnecessary recompilation, won't you? -- Fergus Henderson | "I have always known that the pursuit WWW: | of excellence is a lethal habit" PGP: finger fjh@128.250.37.3 | -- the last words of T. S. Garp.