DYLD_INTERPOSE

Posted by 夏泽民

https://opensource.apple.com/source/dyld/dyld-353.2.1/include/mach-o/dyld-interposing.h // 演示代码 // #import <mach-o/dyld-interposing.h> // from dyld-interposing.h #define DYLD_INTERPOSE(replacement,_replacee) attribute((used)) static struct{ const void* replacement; const void* replacee; } _interpose##_replacee attribute ((section (“__DATA,__interpose”))) = { (const void)(unsigned long)&_replacement, (const void)(unsigned long)&_replacee };



DYLD_FORCE_FLAT_NAMESPACE

Posted by 夏泽民

1、gcc生成dylib。



LD_LIBRARY_PATH

Posted by 夏泽民

PATH: 可执行程序的查找路径



tcmalloc

Posted by 夏泽民

从堆上申请内存 Go内存管理的设计目标是在并发环境下保持高性能,并且集成垃圾回收器。让我们从一个简单的例子开始:



set

Posted by 夏泽民

set -x 与 set +x 在liunx脚本中可用set -x就可有详细的日志输出.免的老是要echo了



Search

Popular posts

Anything in here will be replaced on browsers that support the canvas element

Recent posts

This blog is maintained by 夏泽民

Get in touch with me at 465474307@qq.com

Subscribe to our mailing list

* indicates required