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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1108a1,59ec73856b699922 X-Google-Attributes: gid1108a1,public X-Google-Thread: 11232c,59ec73856b699922 X-Google-Attributes: gid11232c,public X-Google-Thread: fdb77,5f529c91be2ac930 X-Google-Attributes: gidfdb77,public X-Google-Thread: 103376,583275b6950bf4e6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-04-23 12:33:00 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.java.advocacy,comp.object,comp.lang.ada,misc.misc Subject: Re: the Ada mandate, and why it collapsed and died (was): 64 bit addressing and OOP Date: 23 Apr 2003 19:31:08 +0100 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <9fa75d42.0302250710.5549baaf@posting.google.com> <3E5C7033.BD5DC462@adaworks.com> <9fa75d42.0302260618.7506cba7@posting.google.com> <3E5CF5C6.84822F57@adaworks.com> <8qkczsAcGcn+Ew83@nildram.co.uk> <3EA04A1E.CAFC1FEF@adaworks.com> <9fa75d42.0304221126.7112b7d5@posting.google.com> <3EA62B54.49580F4F@adaworks.com> <9fa75d42.0304230424.10612b1a@posting.google.com> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1051126379 16384 62.49.19.209 (23 Apr 2003 19:32:59 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Wed, 23 Apr 2003 19:32:59 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: archiver1.google.com comp.lang.java.advocacy:62575 comp.object:61719 comp.lang.ada:36435 misc.misc:13617 Date: 2003-04-23T19:31:08+01:00 List-Id: softeng3456@netscape.net (soft-eng) writes: > Richard Riehle wrote in message news:<3EA62B54.49580F4F@adaworks.com>... > > > drive the move to interfacing with C. Also, Ada was, > > and is, designed to permit a programmer to get to a very > > low-level of programming, even to the machine code > > level, if it seems appropriate. > > How many times in your whole life have you done this? > Or known of other people who have done this? > > And how many instances do you know when this > was done by interfacing with C? The problem was to interface to the PPC timebase register (the mftb instruction) which is not supported in C either. So the choice, learn the asm features of GNAT vs learn the asm features of GCC (which are of course very similar) seemed a no-brainer; we did the GNAT version. Later I tried the GCC version (this was on VxWorks) and took a couple of hours to realise that in that environment you need to say __asm, because WindRiver use -ansi in C compilations. Whereas the GNAT version worked first time (it took rather longer to get the 64-bit version working, though).