Dead Code Stripping,Link With Standard Libraries

3.3.2 Dead Code Stripping  > YES;(YES,消除无效代码)

120104_ZnEU_2519676.png

 

For statically linked executables, dead-code stripping is the process of removing unreferenced code from the executable file. If the code is unreferenced, it must not be used and therefore is not needed in the executable file. Removing dead code reduces the size of your executable and can help reduce paging. 

To enable dead-code stripping in Xcode, in the Linking group of Build Settings, set the Dead Code Stripping option to Yes.

 

3.3.3 Link With Standard Libraries > YES;

默认是YES,编译器在链接时会自动使用标准库的链接器;

看网上好多资料都说要改成NO,但是看官方的文档,如果设置为NO,需要配置 Other Linker Flags 来指定链接器。

111340_W6I5_2519676.png

 

转载于:https://my.oschina.net/Jerod/blog/756465

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值