{"id":20229188,"url":"https://github.com/dacap/bigdep-test","last_synced_at":"2025-10-26T11:20:43.896Z","repository":{"id":66589472,"uuid":"198870543","full_name":"dacap/bigdep-test","owner":"dacap","description":"A test to try to fix one linking issue, but it doesn't (it looks like my case is more complex, see website link)","archived":false,"fork":false,"pushed_at":"2019-07-25T16:59:54.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-14T20:50:15.093Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://twitter.com/davidcapello/status/1154208100720762881","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dacap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-25T16:59:28.000Z","updated_at":"2019-07-26T02:04:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"061ce420-9a28-4232-95e4-31a60b62ddb9","html_url":"https://github.com/dacap/bigdep-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dacap/bigdep-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacap%2Fbigdep-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacap%2Fbigdep-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacap%2Fbigdep-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacap%2Fbigdep-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dacap","download_url":"https://codeload.github.com/dacap/bigdep-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacap%2Fbigdep-test/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265563047,"owners_count":23788635,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T07:34:48.133Z","updated_at":"2025-10-26T11:20:38.850Z","avatar_url":"https://github.com/dacap.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"*Note: This was tested on macOS with clang*\n\nExample to show the difference of the binary size depending on compiler flags.\n\nThere are three libraries:\n\n* `big`: has a `big()` function, requires `14k`\n* `small`: has a `small()` function, requires `816 bytes`\n* `bigsmall`: has both functions in the same compilation unit (in the\n  same `.cpp` file), requires `14k`, but *depending on which function\n  you use*, you should avoid the `big()` cost\n\nThere are three executables:\n\n* `usebig`: uses `big()` from `big` library, it should be always a big executable, e.g. `16k`\n* `usesmall`: uses `small()` from `small` library, it should be always\n  a small executable, e.g. `4.2k`\n* `usesmall_with_bigsmall`: uses `small()` from `bigsmall` library, it\n  should be a small executable (like `usesmall`, `4.2k`), but\n  depending on the compiler options, you will get the cost of `big()`\n  function (like `usebig`, `16k`)\n\nWith `CMAKE_CXX_FLAGS=\"\"` and `CMAKE_EXE_LINKER_FLAGS=\"\"` we get:\n```\nusebig                   16K\nusesmall                4.2K\nusesmall_with_bigsmall   16K\n```\n\nWith `CMAKE_EXE_LINKER_FLAGS=\"-dead_strip\"` we get:\n```\nusebig                   16K\nusesmall                4.2K\nusesmall_with_bigsmall  4.2K\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdacap%2Fbigdep-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdacap%2Fbigdep-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdacap%2Fbigdep-test/lists"}