Dead Code Stripping,Link With Standard Libraries

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

 

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. spa

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

 

3.3.3 Link With Standard Libraries > YES;ip

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

看网上好多资料都说要改为NO,可是看官方的文档,若是设置为NO,须要配置 Other Linker Flags 来指定连接器。文档

相关文章
相关标签/搜索