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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,81cf52699486abe7 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: GNAT listing file default names (was: Ada95 Strengths/Weaknesses) Date: 1999/09/29 Message-ID: <7stris$k6t$1@nnrp1.deja.com>#1/1 X-Deja-AN: 530785021 References: <37EED7B8.245C0054@yukyonline.co.yuky> <7smp30$9aa1@news.cis.okstate.edu> <7sp8m9$a6e$1@nnrp1.deja.com> <1999Sep28.074901.1@eisner> <7srmd7$2dr$1@nnrp1.deja.com> <1999Sep29.074624.1@eisner> X-Http-Proxy: 1.0 x26.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Wed Sep 29 20:08:08 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-09-29T00:00:00+00:00 List-Id: In article <1999Sep29.074624.1@eisner>, Kilgallen@eisner.decus.org.nospam wrote: > In article <7srmd7$2dr$1@nnrp1.deja.com>, Robert Dewar writes: > > > Listing file? what's that? Seriously, like most modern compilers > > GNAT does not provide an old style listing file. You can if you > > like ask for complete listing output, but this is generated to > > standard output, and is redirected as required (unlike the > > situation in VMS, redirection of this kind is very simple in > > Unix and DOS-like systems). > > To me /LISTING=[MYDIR.LISTINGS] doesn't seem complex, but we digress. You miss the point, the above VMS quote is NOT about redirection, but about using a specific parameter. What I was saying was that in Unix and DOS-like systems, redirection is so easy that one tends to use it extensively. Since general redirection is not nearly so easy in VMS, it is less used. In GNAT, to get a "listing" file, we simply do -gnatl >mydir.listings which is pretty straightforward ... > Are you saying that if I issue whatever is the GNAT command > for: > > "Recompile it all for production and give me a full > listing > for the permanent record of exactly what machine > instructions > shipped to customers for each source line." > > the listing from all compilation units ends up in a single > file ? Trivial commands can put this in one file, many files etc etc, but the concept of a "listing file" as such is indeed an antiquated one, and you will not in general find modern compilers on modern systems providing this capability in a VMS-like way -- yes, yes, we know, you *like* the VMS capabilities in this area :-) > Yes, I realize that for optimizing compilers the bit about "for each > source line" is incredibly difficult for a human to trace, and one hopes > to never need it, but it does happen. A GNAT generated assembly file with embedded line number information will indeed give you the information you need, or alternatively you can use a tool like objdump to get the information you need. > > Larry Kilgallen > Sent via Deja.com http://www.deja.com/ Before you buy.