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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Clubley Newsgroups: comp.lang.ada Subject: Re: Could you write a BSD like os in ADA? Date: Sun, 28 Aug 2016 01:20:47 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <79e591f0-3c3e-42b2-ad1f-3e59a031531e@googlegroups.com> <94756e03-7788-4032-a70b-3a0468fc3af9@googlegroups.com> <2b473012-b01e-4c46-add5-048889bf20df@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Date: Sun, 28 Aug 2016 01:20:47 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="fd4702279780f731c13a2c1b663439bc"; logging-data="4585"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19pU7YsjzLNklEGALso5nS7i7fcG1pEk+w=" User-Agent: slrn/0.9.9p1 (Linux) Cancel-Lock: sha1:mTWuGSF7c6djcG+ZhAfSEODxnP8= Xref: news.eternal-september.org comp.lang.ada:31618 Date: 2016-08-28T01:20:47+00:00 List-Id: On 2016-08-24, Jeffrey R. Carter wrote: > On 08/24/2016 10:40 AM, Qun-Ying wrote: >> >> GNAT has support for OpenVMS: >> http://www.adacore.com/press/gnat-pro-now-available-for-hp-openvms-on-hp-integrity-servers/ >> >> >> Not sure if FSF GNAT could be cross compiled into VAX OpenVMS. > > DEC contracted with AdaCore (then ACT) to provide the DEC Ada-95 compiler. This > is why GNAT recognizes all the DEC Ada(-83) pragmas, such as Passive. > That doesn't mean all the required bits have shown up in the FSF version of the GCC codebase (don't forget AdaCore maintain their own codebase). I've tried to build the FSF GCC for a VMS Alpha target and the attempts failed both times I tried it. (The last attempt was with gcc 4.9.x). You start with a Linux hosted gcc/binutils cross compiler toolchain with a VMS target (so it produces VMS executables that can be directly run on VMS.) The idea AFAICS is that you then use these executables to build the compiler in native mode on VMS itself, but I never got that far. I was able to use the cross compiler to build some C programs which ran on VMS, but Fortran code fell over at runtime either during the image activation process or very shortly afterwards (I can't remember which). Both the C++ and Ada frontends failed to build when building the cross compiler (GNAT fell over with an ICE during the build and C++ was some header problem IIRC). Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Microsoft: Bringing you 1980s technology to a 21st century world