Re: What Linux for: CC /LIST=x.lst



Bob Eager wrote:
On Wed, 11 Feb 2009 17:20:05 UTC, "C.W.Holeman II" <cwhii_google_spam@xxxxxxxxx> wrote:

Richard B. Gilbert wrote:
C.W.Holeman II wrote:
How do I get G++ on Linux to produce a compiler listing file?


You have to read the man page. The last time I looked that was at least 100 pages! It's has been a few years since I last used it and I don't remember the details. Sorry!
info g++ = 14845 lines

Would somebody on a VMS system compile this for me and send or post
the listing file. Then I could show the people in Unixland what I am looking for because the phrase "compiler listing" does not seem to work.

#include <iostream>
int main(){
std::cout << "Hello, world!\n";
}

You're looking at a different idiom. What information, specifically, are
you after? (other than a line-numbered copy of the source, and the date of compilation?)


I think he means what a VMS user gets from a listing. The statements are sequentially numbered, error messages immediately follow the line in error, etc, etc. You can also get a cross reference that can be an enormous help while debugging; it lists every variable and the line number of each statement that references it. Some of the better ones will tell you all the lines where "X" was assigned a value.

.



Relevant Pages

  • Re: What Linux for: CC /LIST=x.lst
    ... Would somebody on a VMS system compile this for me and send or post ... looking for because the phrase "compiler listing" does not seem to work. ... You can also get a cross reference that can be an ...
    (comp.os.vms)
  • Re: What Linux for: CC /LIST=x.lst
    ... Would somebody on a VMS system compile this for me and send or post ... Then I could show the people in Unixland what I am looking for because the phrase "compiler listing" does not seem to work. ... You can also get a cross reference that can be an enormous help while debugging; it lists every variable and the line number of each statement that references it. ...
    (comp.os.vms)
  • Re: What Linux for: CC /LIST=x.lst
    ... Would somebody on a VMS system compile this for me and send or post ... looking for because the phrase "compiler listing" does not seem to work. ... You can also get a cross reference that can be an ...
    (comp.os.vms)
  • Possible ARM Compiler Issue
    ... Following that listing is the assembler section ... CODE, ARM, SELECTION=1; comdat noduplicate ... ; Function compile flags: /Ogsy ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Why doesnt this work
    ... processed listing if you can't see the problem. ... Copy/paste the compile command that gets executed when you run make to the ... will contain preprocessed code. ...
    (comp.os.lynx)