反汇编详细分析各式各样的情况
2016-11-16 23-14-56屏幕截图.png1)构造std::string对象,依次传递了分配器对象地址,字符串指针,this指针
c++filt _ZNSaIcEC1Ev
std::allocator<char>::allocator()
c++filt _ZNSaIcED1Ev
std::allocator<char>::~allocator()
c++filt ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EPKcRKS3
std::__cxx11::basic_string<char,std::char_traits<char>,std::allocator<char> >::basic_string(char const*,std::allocator<char> const&)
2)0x8048a10在.rodata节,不能修改
编译器报错 error: assignment of read-only location
3)
网友评论