How to generate a symbol table in c++?

Recommended Answers

All 2 Replies

you need to access to the symbol data of the compiler.
use a utility program like nm,objdump etc.

write a program that parses a *.cpp file and extracts all its symbols. Your program will have to recognize valid symbol names, which may be easier if the *.cpp file is formatted so that symbol names are surrounded by spaces int example = 0; instead of this: int example=0;

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.