草庐IT

ConstPointer

全部标签

c++ - 为什么 sun C++ 编译器在使用调试信息进行编译时会更改符号名称?

我有这个源文件://ConstPointer.cppconstshort*constconst_short_p_const=0;constshort*const_short_p=0;并使用和不使用调试信息对其进行编译(SUNC++编译器5.10):#CCConstPointer.cpp-c-oConstPointer.o#CC-gConstPointer.cpp-c-oConstPointer-debug.o以下是目标文件的符号名称没有调试信息:#nm-CConstPointer.oConstPointer.o:[Index]ValueSizeTypeBindOtherShndxNam