iOS程序的内存布局
2020-10-28 本文已影响0人
Jean_Lina
![](https://img.haomeiwen.com/i5240513/9b66c01a0b919a6e.png)
![](https://img.haomeiwen.com/i5240513/bf8a71dfc2a76919.png)
iOS引入Tagged Pointer技术,为了优化NSString、NSNumber、NSDate小对象的存储。
判断指针为Tagged Pointer
iOS平台:指针的最高有效位是1(64位)
Mac平台:指针的最低有效位是1
iOS引入Tagged Pointer技术,为了优化NSString、NSNumber、NSDate小对象的存储。
判断指针为Tagged Pointer
iOS平台:指针的最高有效位是1(64位)
Mac平台:指针的最低有效位是1