Dead Code Stripping,Link With Standard Libraries

为什么80%的码农都做不了架构师?>>>   hot3.png

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

Dead Code Stripping,Link With Standard Libraries_第1张图片

 

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 来指定链接器。

Dead Code Stripping,Link With Standard Libraries_第2张图片

 

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

你可能感兴趣的:(Dead Code Stripping,Link With Standard Libraries)