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-Thread: 103376,e5006bbc2c63c1db X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!r36g2000yqm.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: GPS Compiler options Date: Fri, 9 Apr 2010 07:15:07 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <4bbf2806$0$19565$703f8584@news.kpn.nl> NNTP-Posting-Host: 153.98.68.197 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1270822612 13676 127.0.0.1 (9 Apr 2010 14:16:52 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 9 Apr 2010 14:16:52 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r36g2000yqm.googlegroups.com; posting-host=153.98.68.197; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100202 Firefox/3.5.8,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:9944 Date: 2010-04-09T07:15:07-07:00 List-Id: ldries46 wrote on comp.lang.ada: > I'm relatively new to GPS. I'm trying to compile a program but every time I > compile the program I observe that all units are compiled when I had > expected that only the unit I had altered would be compiled again. What do I > have to do to make this work. I alreday have tried all types of building of > the program. The bug may be either in gnatmake or in your expectations; this depends on which unit you change. If you change a spec, then all specs and all bodies that depend on the changed spec need to be recompiled. If you change a generic body, then all specs and bodies that contain an instantiation of the generic body need to be recompiled (this is specific to GNAT, which does not share the object code between insiantiations of a generic). If you change a file containing a "separate" unit, then the enclosing unit needs to be recompiled too, because GNAT emits only one object file containing the enclosing units and all "separate" bodies in it. We could help you more if you would be more specific about the units in your program and on which units you changed. PS. Maybe consider using the gnatmake -m switch ("minimal recompilation"); you do that by changing the project properties in GPS. With this option, gnatmake expends more effort trying to determine which units are still up to date. -- Ludovic Brenta.