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,dbcd0557f06cdbfa X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-09 06:02:26 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newshub2.home.com!news.home.com!news1.rdc1.mi.home.com.POSTED!not-for-mail From: "McDoobie" Subject: Re: Only one compilation unit. Newsgroups: comp.lang.ada Organization: The Caffinated Corps. References: <3B497F21.8CD784D8@brighton.ac.uk> User-Agent: Pan/0.8.1beta4 (Unix) X-No-Productlinks: Yes Message-ID: Date: Mon, 09 Jul 2001 13:02:26 GMT NNTP-Posting-Host: 24.0.109.49 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.mi.home.com 994683746 24.0.109.49 (Mon, 09 Jul 2001 06:02:26 PDT) NNTP-Posting-Date: Mon, 09 Jul 2001 06:02:26 PDT Xref: archiver1.google.com comp.lang.ada:9670 Date: 2001-07-09T13:02:26+00:00 List-Id: In article <3B497F21.8CD784D8@brighton.ac.uk>, John English wrote: > For GNAT, yes. > > Simple solution: if you have x.adb containing procedure Main and > procedure Sub, run "gnatchop x.adb" which will split the procedures into > separate files called main.adb and sub.adb, then run "gnatmake main.adb" > which will compile Main and any other units that it depends on (in this > case, Sub). Note that Main will need to say "with Sub;" at the top... > >> Or is it necessary to write .ads which describe each and every >> procedure? > > No. Gnatchop is turning out to be very handy. I intend to make use of it more often. Thank you. McDoobie chris@dont.spam.me