Skip to content

migueldeicaza/LinkSample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This module contains a project that has two identical libraries and two identical executable targets that reference the libraries.

One set is just verbatim swift, the other one includes various flags to attempt to remove dead code.

The executable code makes sure to reference a symbol in the library, but after building, you will see that various methods and strings from types that are never used and by extension methods that are not referenced end up in the binary.

The Makefile in this directory contains some targets:

  • make: will build in release mode

  • make dead-plain and make dead-strip show the 'no dead strip' flags set on members in both the regular library and the one compiled for stripping so we can compare what works and what does not with this flag.

  • make strings can show which strings are still visible in the resulting executable, for quickly determining if something is removed or not.

About

Attempt to figure out how to link code out in Swift

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published