Skip to content

all: add support for GOARM #2260

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

Merged
merged 1 commit into from
Nov 15, 2021
Merged

all: add support for GOARM #2260

merged 1 commit into from
Nov 15, 2021

Conversation

aykevl
Copy link
Member

@aykevl aykevl commented Nov 14, 2021

This environment variable can be set to 5, 6, or 7 and controls which ARM version (ARMv5, ARMv6, ARMv7) is used when compiling for GOARCH=arm.

The default value is usually ARMv5. This is an old architecture variant and perhaps it makes sense to use a more recent one such as ARMv6.

We could even go further and support ARMv4 if anybody is interested. It should be pretty simple to add this if needed.

@aykevl
Copy link
Member Author

aykevl commented Nov 14, 2021

I changed the PR a bit to default to GOARM=6 instead of GOARM=5. Still not sure which is the better one, but ARMv6 is supported on most single board computers and (I think) all Raspberry Pis. The difference between ARMv5 and ARMv6 is pretty big.

This environment variable can be set to 5, 6, or 7 and controls which
ARM version (ARMv5, ARMv6, ARMv7) is used when compiling for GOARCH=arm.

I have picked the default value ARMv6, which I believe is supported on
most common single board computers including all Raspberry Pis. The
difference in code size is pretty big.

We could even go further and support ARMv4 if anybody is interested. It
should be pretty simple to add this if needed.
@deadprogram
Copy link
Member

Thanks @aykevl and @niaow now merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants