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,cd962bca2451dfbc X-Google-Attributes: gid103376,public From: dennison@telepath.com Subject: Re: static objects in ADA Date: 1999/04/26 Message-ID: <7g1uvn$fjr$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 471049574 References: <7foacg$3t1@news1.newsguy.com> <4IaN6CA84vI3EwTh@tioman.demon.co.uk> X-Http-Proxy: 1.0 x16.dejanews.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Mon Apr 26 14:59:05 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.5 [en] (WinNT; I) Date: 1999-04-26T00:00:00+00:00 List-Id: In article <4IaN6CA84vI3EwTh@tioman.demon.co.uk>, Mark Elson wrote: > The "advice" has really annoyed me. It came from Green Hills and they > were actually telling us that we should abandon an object-orientated > design and use structured methods instead to avoid the overhead of > object initialisation (which they believed would give us "long" start-up > times). In fact, we are not creating any significantly large objects at > start-up time, anyway, so I felt this was very bad advice. IMO, at the > implementation level OO and structured methods might only differ in the > organisation of code. There should be no reason why OO-designed code > should be inherently less efficient than a structured design. Possibly > inefficient activities such as dynamic memory allocation can be avoided, > by design, if required. In fact we intend to do this for other reasons > as the app will be safety-critical. Compiler developers are notoriously anti-OO. Perhaps that is because of all the extra work those OO features cause them. :-) Hopefully this is a comment on their perception of OO-designed code, and not on their compiler's efficincy in translating tagged-type code into machine language. Our current project is realtime, is using a GreenHills compiler, and it is OO through and through. But then, we don't really care too much about startup time either. -- T.E.D. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own