I am new to the C programming language and gcc.
I am trying to decipher a rather complex C program. I would like to read a helpful listing file instead of the source file.
I am looking for a listing file created by the gcc compiler that contains:
- the source code for all the includes
- xref = cross reference listing
- reference to where the variable is declared. For example, if the line contains
i++;
, then a note saying werei
is declared.
I did a search for this, but gcc has so many options, I got lost.
If there is a better place to ask my question, please let me know.