Is there a way to generate a cross reference listing for a c/c++ program using gcc?

E. Weddington ericw@evcohs.com
Fri May 13 21:33:00 GMT 2005


Paul Albrecht wrote:

>Is there a way to generate a cross reference listing for a c/c++ program
>using gcc?
>
>
>  
>

-Wl,-Map=mapfile.map,--cref

Docs for -Wl option:
<http://gcc.gnu.org/onlinedocs/gcc-4.0.0/gcc/Link-Options.html#Link-Options>

Docs for linker options (-Map, --cref):
<http://sourceware.org/binutils/docs-2.16/ld/Options.html#Options>


Questions like this are more topical for the gcc-help mailing list:
<http://gcc.gnu.org/lists.html>

Eric



More information about the Gcc mailing list