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

Comments

Projects
None yet
3 participants
@crawshaw
Contributor

crawshaw commented Jul 10, 2015

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 added the OS-Android label Jul 10, 2015

@crawshaw crawshaw self-assigned this Jul 10, 2015

@crawshaw crawshaw added this to the Go1.6 milestone Jul 10, 2015

@mwhudson

This comment has been minimized.

Contributor

mwhudson commented Jul 12, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment