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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6c7dea22b75ba442 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!wn11feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada From: anon@anon.org (anon) Subject: Re: ada compiler? Reply-To: anon@anon.org (anon) References: <8n6Zi.193391$Fc.57033@attbi_s21> X-Newsreader: IBM NewsReader/2 2.0 Message-ID: Date: Sat, 10 Nov 2007 00:32:39 GMT NNTP-Posting-Host: 12.65.30.54 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1194654759 12.65.30.54 (Sat, 10 Nov 2007 00:32:39 GMT) NNTP-Posting-Date: Sat, 10 Nov 2007 00:32:39 GMT Organization: AT&T Worldnet Xref: g2news1.google.com comp.lang.ada:18243 Date: 2007-11-10T00:32:39+00:00 List-Id: >Note that "-gnato -fstack-check" is needed for GNAT to be an Ada compiler. Where did you get that one! I have never use "-gnato -fstack-check" and all programs that I have created have work. May be you have some wrong on your system. In <8n6Zi.193391$Fc.57033@attbi_s21>, "Jeffrey R. Carter" writes: >Bill Cunningham wrote: >> I have just began looking at the ada language and some tutorials but I >> have no idea how to compile ada programs. I am using gcc with C,C++, and Ada >> support. Do Ada programs have to end in .ads ? How do I work the compiler? > >The default for GNAT (which is what you have) is that package >specifications end in .ads, and everything else ends in .adb. You can >use other extensions if you like, but to start off with it's probably >easiest to abide by this convention. > >The easiest way to use the compiler is to use gnatmake: > >gnatmake -gnato -fstack-check [-O2] > >This will compile .adb and everything needed to >produce an executable for it. > >Note that "-gnato -fstack-check" is needed for GNAT to be an Ada compiler. > >-- >Jeff Carter >"Spam! Spam! Spam! Spam! Spam! Spam! Spam! Spam!" >Monty Python's Flying Circus >53