Does gcc have a source listing compiler option?

Russ Allbery rra@stanford.edu
Thu Sep 30 23:56:00 GMT 1999


Morris Dovey <mrdovey@iedu.org> writes:
> "John H. Chauvin" wrote:

>> Does the GNU gcc/g77 compiler offer a compile option to produce a
>> listing file which has the source listing with line numbers,
>> appropriate error messages, symbol table information, and function
>> cross reference?

> I'm using the gcc compiler under Linux and could find no compiler option
> to do everything you're looking for -- however (1) the compiler does (of
> course) produce appropriate error messages, there are utilities to
> produce line-numbered printable files, and the nm utility will produce
> external/global information.

For a function cross-reference, look at the tags facility (ctags for vi,
etags for emacs).

-- 
Russ Allbery (rra@stanford.edu)         <URL: http://www.eyrie.org/~eagle/ >



More information about the Gcc-help mailing list