* Optimal Compilation Desired
@ 1998-11-24 0:00 Anthony E. Glover
1998-11-25 0:00 ` dennison
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Anthony E. Glover @ 1998-11-24 0:00 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 440 bytes --]
Does anyone have a script or command line that will optimally compile
all code in a given directory, i.e. don't compile specs that have bodies
or separates. I have a library of reuse code that does not contain any
kind of main and I just want to compile everything. I currently compile
*.ads and then *.adb, but this of course attempts to compile specs
that don't need to be compiled.
Tony Glover
ELMCO, Inc.
(256)721-6317
aeg@hiwaay.net
[-- Attachment #2: Card for Anthony E. Glover --]
[-- Type: text/x-vcard, Size: 274 bytes --]
begin: vcard
fn: Anthony E. Glover
n: Glover;Anthony E.
org: ELMCO, Inc.
email;internet: aeg@hiwaay.net
title: Senior Software Engineer
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Optimal Compilation Desired
1998-11-24 0:00 Optimal Compilation Desired Anthony E. Glover
@ 1998-11-25 0:00 ` dennison
1998-11-25 0:00 ` Tom Moran
1998-12-02 0:00 ` Thomas Preymesser
2 siblings, 0 replies; 5+ messages in thread
From: dennison @ 1998-11-25 0:00 UTC (permalink / raw)
In article <365B5C3D.E593F179@hiwaay.net>,
aeg@hiwaay.net, glover@thaad.tecmasters.com wrote:
> Does anyone have a script or command line that will optimally compile
> all code in a given directory, i.e. don't compile specs that have bodies
> or separates. I have a library of reuse code that does not contain any
> kind of main and I just want to compile everything. I currently compile
> *.ads and then *.adb, but this of course attempts to compile specs
> that don't need to be compiled.
Uhhh, what compiler are we talking about here? With Gnat, you don't compile
specs; they get compiled with every body that withs them. With Tucker's
favorite front-end (used on ObjectAda and GreenHills and probably others),
you should be able to "adareg -all", then use whatever recompilation command
exists for your compiler.
--
T.E.D.
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Optimal Compilation Desired
1998-11-24 0:00 Optimal Compilation Desired Anthony E. Glover
1998-11-25 0:00 ` dennison
@ 1998-11-25 0:00 ` Tom Moran
1998-11-25 0:00 ` Anthony E. Glover
1998-12-02 0:00 ` Thomas Preymesser
2 siblings, 1 reply; 5+ messages in thread
From: Tom Moran @ 1998-11-25 0:00 UTC (permalink / raw)
I'm confused about just what you want, but perhaps it just needs a
dummy main program that 'with's every spec in the directory? ie, pipe
a dir *.ads to a file, then edit that into a set of "with xyz;"
followed by "procedure dummy is begin null;end dummy;"
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Optimal Compilation Desired
1998-11-25 0:00 ` Tom Moran
@ 1998-11-25 0:00 ` Anthony E. Glover
0 siblings, 0 replies; 5+ messages in thread
From: Anthony E. Glover @ 1998-11-25 0:00 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 926 bytes --]
Tom Moran wrote:
>
> I'm confused about just what you want, but perhaps it just needs a
> dummy main program that 'with's every spec in the directory? ie, pipe
> a dir *.ads to a file, then edit that into a set of "with xyz;"
> followed by "procedure dummy is begin null;end dummy;"
To clarify, according to the gnat documentation, only package bodies
need to be compiled. When the body is coompiled the spec will also
get coompiled; therefore if I compile the spec and then turn around
and compile the body, then the first compile of the spec was a waste
of time. However, if you have a package spec that has no body, then
the spec needs to be compiled. I was hoping to find a simple way of
giving a command that would compile bodies only except when there was
only a spec. I had tought about the above solution, but I was hoping
there might be a simpler solution that I can use within our build
scripts.
Thanks,
Tony
[-- Attachment #2: Card for Anthony E. Glover --]
[-- Type: text/x-vcard, Size: 274 bytes --]
begin: vcard
fn: Anthony E. Glover
n: Glover;Anthony E.
org: ELMCO, Inc.
email;internet: aeg@hiwaay.net
title: Senior Software Engineer
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Optimal Compilation Desired
1998-11-24 0:00 Optimal Compilation Desired Anthony E. Glover
1998-11-25 0:00 ` dennison
1998-11-25 0:00 ` Tom Moran
@ 1998-12-02 0:00 ` Thomas Preymesser
2 siblings, 0 replies; 5+ messages in thread
From: Thomas Preymesser @ 1998-12-02 0:00 UTC (permalink / raw)
On Tue, 24 Nov 1998 19:24:13 -0600, "Anthony E. Glover"
<aeg@hiwaay.net> wrote:
>Does anyone have a script or command line that will optimally compile
>all code in a given directory, i.e. don't compile specs that have bodies
>or separates. I have a library of reuse code that does not contain any
>kind of main and I just want to compile everything. I currently compile
>*.ads and then *.adb, but this of course attempts to compile specs
>that don't need to be compiled.
why don't you use some sort of make-program, which will exactly
compile what must be compiled and nothing more?
-Thomas
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1998-12-02 0:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-11-24 0:00 Optimal Compilation Desired Anthony E. Glover
1998-11-25 0:00 ` dennison
1998-11-25 0:00 ` Tom Moran
1998-11-25 0:00 ` Anthony E. Glover
1998-12-02 0:00 ` Thomas Preymesser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox