Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/link: android c-shared libraries are big #11663

Open
crawshaw opened this issue Jul 10, 2015 · 1 comment
Open

cmd/link: android c-shared libraries are big #11663

crawshaw opened this issue Jul 10, 2015 · 1 comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. OS-Android
Milestone

Comments

@crawshaw
Copy link
Member

A single-function Go library importing fmt is 2.6mb:

2627776 00-00-80 00:00 jni/armeabi-v7a/libgojni.so

That's a bit larger than the equivalent binary darwin/amd64.

@crawshaw crawshaw self-assigned this Jul 10, 2015
@crawshaw crawshaw added this to the Go1.6 milestone Jul 10, 2015
@mwhudson
Copy link
Contributor

How much of the difference is relocations? There are a bajillion (technical
term) with -buildmode=shared and I see no reason why c-shared would be
different.
On 11/07/2015 11:55 am, "David Crawshaw" notifications@github.com wrote:

A single-function Go library importing fmt is 2.6mb:

2627776 00-00-80 00:00 jni/armeabi-v7a/libgojni.so

That's a bit larger than the equivalent binary darwin/amd64.


Reply to this email directly or view it on GitHub
#11663.

@rsc rsc modified the milestones: Unplanned, Go1.6 Dec 5, 2015
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. OS-Android
Projects
None yet
Development

No branches or pull requests

4 participants