Need to create a program in c++ to generate a symbol table of given assembly language program?
If you compil/link for debug, you'll get a symbol table.
Exactly how you do that depends on the compiler.
Using GCC, you pass -g.
For example:
g++ -g example.cc -o example