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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,5f14691e88205f0c X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!k41g2000yqb.googlegroups.com!not-for-mail From: Tom Newsgroups: comp.lang.ada Subject: Re: Using GNAT in a C and assembly toolchain Date: Tue, 4 May 2010 22:52:20 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 173.29.157.41 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1273038740 18640 127.0.0.1 (5 May 2010 05:52:20 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 5 May 2010 05:52:20 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k41g2000yqb.googlegroups.com; posting-host=173.29.157.41; posting-account=cl5BOgoAAABrMbXC_XIqL102qJaIFR34 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:11316 Date: 2010-05-04T22:52:20-07:00 List-Id: On May 4, 2:50=A0pm, Simon Wright wrote: > OK, I work on military systems, but my Software Design Authority > would need A Whole Lot Of Convincing to change the tool chain in a way > not supported by the tool vendor. This is strictly prototyping. > > > The question is how can I best use Ada and GNAT in such an > > environment? =A0One method that comes to mind is to compile Ada to > > assembly code, which is then passed to GHS for assembling and linking > > with the closed source OS and HAL. =A0I don't see an assembly switch, > > like GCC's -S. =A0Would this mean I would need the compile Ada modules > > individually with GCC instead of using gnatmake? =A0Are there any > > options to compile Ada down to C by chance? > > "gnatmake -c -S foo.adb" compiles the closure of foo to assembler (.s) > files. Of course these are going to be in GNU assembler, which may or > may not be that used by GHS. This will work. And GHS does indeed read GNU assembly, with minor post processing. BTW, I've moved the scripts and patch files used to build the powerpc- eabi cross compiler to github if anyone's interested: http://github.com/tomahawkins/powerpc-eabi