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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8591be732d0fce98 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!feed.xsnews.nl!border-2.ams.xsnews.nl!newsfeed.straub-nv.de!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ada OOP alternatives? Date: Tue, 22 Jul 2008 18:35:40 -0500 Organization: Jacob's private Usenet server Message-ID: References: <462e0cf4-1d53-4918-b30b-dd3d8df90f1b@p25g2000hsf.googlegroups.com> <487d9636$0$6543$9b4e6d93@newsspool3.arcor-online.net> <6e5uq2F5g7n6U2@mid.individual.net> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: jacob-sparre.dk 1216769763 21764 69.95.181.76 (22 Jul 2008 23:36:03 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 22 Jul 2008 23:36:03 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 X-RFC2646: Format=Flowed; Original Xref: g2news2.google.com comp.lang.ada:6993 Date: 2008-07-22T18:35:40-05:00 List-Id: "Adam Beneschan" wrote in message news:c721e61c-464a-4ace-8aa8-7b051794fa7c@y38g2000hsy.googlegroups.com... ... > It seems to me that it ought to be possible to have a compiler that > compiles individual source files into some sort of "intermediate" > representation that is not quite machine code, and then when the > complete executable is built, the intermediate code is then used to > generate the actual code. ... > But I realize that I'm just dreaming... Why? That's the basic design of Janus/Ada. As I've previously said, we never built that version of the back-end because the machines back in the day couldn't handle it, and haven't done it more recently simply because there isn't enough hours in the day. But that's how inlining should work. One could argue that this is exactly how Java works, after all. Except there they never bother to compile it at all (at least until runtime). Indeed, one could make the argument that there isn't anymore need to compile at link-time than there is in the current file-at-a-time scheme. Randy.