* Gnatmake and Source Listings
@ 1997-06-18 0:00 Jaime W
1997-06-19 0:00 ` Richard A. O'Keefe
1997-06-20 0:00 ` Robert Dewar
0 siblings, 2 replies; 4+ messages in thread
From: Jaime W @ 1997-06-18 0:00 UTC (permalink / raw)
I am using gnatmake to work on some of my programs for school at home.
One of the requirements is that I turn in a listing of my compiled
program. A listing being a line numbered listing of my source code.
I can get gnatmake to display the main source code, but none of the
subunit's code. Is there a way to do this?
Thanks,
Jaime Wyant
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Gnatmake and Source Listings
1997-06-18 0:00 Gnatmake and Source Listings Jaime W
@ 1997-06-19 0:00 ` Richard A. O'Keefe
1997-06-20 0:00 ` Robert Dewar
1997-06-20 0:00 ` Robert Dewar
1 sibling, 1 reply; 4+ messages in thread
From: Richard A. O'Keefe @ 1997-06-19 0:00 UTC (permalink / raw)
munky@netdoor.com (Jaime W) writes:
>I am using gnatmake to work on some of my programs for school at home.
>One of the requirements is that I turn in a listing of my compiled
>program. A listing being a line numbered listing of my source code.
>I can get gnatmake to display the main source code, but none of the
>subunit's code. Is there a way to do this?
If you have access to a UNIX box,
cat -n foo.adb >foo.lst
will give you a "listing" with line numbers.
Here we require electronic submission of the original source code;
in the past I've known students edit a compiler listing to delete
the error messages they couldn't fix any other way.
--
Four policemen playing jazz on an up escalator in the railway station.
Richard A. O'Keefe; http://www.cs.rmit.edu.au/%7Eok; RMIT Comp.Sci.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Gnatmake and Source Listings
1997-06-18 0:00 Gnatmake and Source Listings Jaime W
1997-06-19 0:00 ` Richard A. O'Keefe
@ 1997-06-20 0:00 ` Robert Dewar
1 sibling, 0 replies; 4+ messages in thread
From: Robert Dewar @ 1997-06-20 0:00 UTC (permalink / raw)
Jaime says
<<I am using gnatmake to work on some of my programs for school at home.
One of the requirements is that I turn in a listing of my compiled
program. A listing being a line numbered listing of my source code.
I can get gnatmake to display the main source code, but none of the
subunit's code. Is there a way to do this?>>
You need to get hold of gnatinfo.txt. It documents the option to achieve
this and many other useful capabilities with GNAT via compiler options.
For a quick list of these options, type gnatf with no parameters.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Gnatmake and Source Listings
1997-06-19 0:00 ` Richard A. O'Keefe
@ 1997-06-20 0:00 ` Robert Dewar
0 siblings, 0 replies; 4+ messages in thread
From: Robert Dewar @ 1997-06-20 0:00 UTC (permalink / raw)
Richard says
<<If you have access to a UNIX box,
cat -n foo.adb >foo.lst
will give you a "listing" with line numbers.
>>
OK, if people are going to post such hokey answers, I will give the
proper answer here (although I really think that students (and others!)
should look this sort of thing up in the documentation :-)
use -gnatl, it gives exactly what you want, a listing with line numbers
(and interspersed error messages). It also gives the time stamp of the
source file (useful for grading purposes, put there in answer to a request
from one Michael Feldman :-0)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1997-06-20 0:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-06-18 0:00 Gnatmake and Source Listings Jaime W
1997-06-19 0:00 ` Richard A. O'Keefe
1997-06-20 0:00 ` Robert Dewar
1997-06-20 0:00 ` Robert Dewar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox