Get a list of variables declared in a large codebase

We need a list of all variables, static and extern in a code base.

I think gcc has an option to produce this list.

Can you help, What are the options.
LVL 1
bearwareAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
ahoffmannConnect With a Mentor Commented:
use ld's  -Map mapfile   option
0
 
ecwCommented:
nm file ...

works on objects, binaries and libs
0
 
MoondancerCommented:
Has this helped you or do you need more here?
Moondancer - EE Moderator
0
All Courses

From novice to tech pro — start learning today.