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: 103376,71aa774fdaf5c3c2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-24 06:38:42 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!cambridge1-snf1.gtei.net!news.gtei.net!bos-service1.ext.raytheon.com!dfw-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3C501C5C.F7862A15@Raytheon.com> From: Mark Johnson X-Mailer: Mozilla 4.5 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: gnat compiler - help wanted References: <9eb165bd.0201240338.14ea705a@posting.google.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 24 Jan 2002 08:38:20 -0600 NNTP-Posting-Host: 192.27.48.44 X-Complaints-To: news@ext.ray.com X-Trace: dfw-service2.ext.raytheon.com 1011883122 192.27.48.44 (Thu, 24 Jan 2002 08:38:42 CST) NNTP-Posting-Date: Thu, 24 Jan 2002 08:38:42 CST Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:19274 Date: 2002-01-24T08:38:20-06:00 List-Id: Tony wrote: > > I am currently having problems making a server process which deals > with the compilation of ada code from text delivered over a socket. > I don't suppose you could... - create a temporary directory - feed the text from the socket to gnatchop (directly or indirectly), output to that temporary directory - run gnatmake in that temporary directory - send the results back to the originator Or is that considered "cheating"? > [snip] > My problem with the Gnat Source is following the dependencies. > i.e. where does gnatmake come from... which packages (there are quite > literally thousands of them). > If you MUST figure out how gnatmake is built (which doesn't appear to be a necessary precondition), I would suggest something as simple as... rm *.ali *.o gnatmake [switches] gnatmake 2>&1 | tee gnatmake.output to rebuild gnatmake & capture the compiler output. Then edit the gnatmake.output file to have the list of files that got compiled. I do something similar when preparing an example to send to ACT for bug reports. --Mark