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: 109fba,b87849933931bc93 X-Google-Attributes: gid109fba,public X-Google-Thread: fac41,b87849933931bc93 X-Google-Attributes: gidfac41,public X-Google-Thread: f43e6,b87849933931bc93 X-Google-Attributes: gidf43e6,public X-Google-Thread: 114809,b87849933931bc93 X-Google-Attributes: gid114809,public X-Google-Thread: 1108a1,b87849933931bc93 X-Google-Attributes: gid1108a1,public X-Google-Thread: 103376,b87849933931bc93 X-Google-Attributes: gid103376,public From: Martin ELLISON Subject: Re: What is wrong with OO ? Date: 1997/01/12 Message-ID: <32D84C44.1C72@mpce.mq.edu.au>#1/1 X-Deja-AN: 209250308 references: <5acjtn$5uj@news3.digex.net> <32D11FD3.41C6@wi.leidenuniv.nl> <5b56u0$fsc@news.eng.octel.com> content-type: text/plain; charset=us-ascii organization: Macquarie University, NSW, Australia mime-version: 1.0 newsgroups: comp.lang.c++,comp.lang.smalltalk,comp.lang.eiffel,comp.lang.ada,comp.object,comp.software-eng x-mailer: Mozilla 2.02 (X11; I; SunOS 5.5 sun4m) Date: 1997-01-12T00:00:00+00:00 List-Id: Robert Dewar wrote: > > Simon says > > "I agree it can't be done with a stupid linker, but I was just pointing out > that inlining can be done in Ada without affecting the programmer. > > You just have to leave the jobs of optimisation and (machine) code generation > to a later stage." > > Let's look at that carefully. The second paragaph implies that the link > step redoes optimization and compilations for the entire program. Even > with fast machines and fast compilers, I think that this is definitely > something that would "affect the programmer". Why can't the compiler optimise the whole program? (Assuming that it is all written in the same language). Who says that you have to compile and generate code for each module and then link them together? Doing so may be quicker for a development version, but surely a production compile can be optimised across the whole system. --------------------------------------------------- Martin Ellison mailto:martin@mpce.mq.edu.au http://www.jrcase.mq.edu.au/~martin/