编译器高级用法1:GNU GCC __wrap_symbol __real_symbol

  1. __wrap_malloc动态替换malloc函数:https://blog.csdn.net/q2519008/article/details/88661486
  2. GCC中通过--wrap选项使用包装函数:https://blog.csdn.net/fengbingchun/article/details/82947673
  3. 使用__wrap_malloc查看内存使用:https://blog.csdn.net/iEearth/article/details/49737577
  4. 如何通过wrap malloc定位C/C++程序的内存泄漏 https://blog.csdn.net/weixin_37097700/article/details/102493718
posted @ 2022-03-02 20:34  天道酬勤DW  阅读(343)  评论(0编辑  收藏  举报