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

Add support for Go assembly #2688

Closed
wants to merge 3 commits into from
Closed

Add support for Go assembly #2688

wants to merge 3 commits into from

Conversation

aykevl
Copy link
Member

@aykevl aykevl commented Mar 7, 2022

Work in progress. The math package works, but many other packages (like crypto/aes) don't work yet.
This draft is also for amd64/arm64 only.

This commit moves the calculation of the package action ID (cache key)
into a separate job. At the moment, this won't have a big effect but
this change is necessary for some future changes I want to make.
The Go tools only consider lowercase .s files to be assembly files. By
renaming these to uppercase .S files they won't be discovered by the Go
toolchain and listed as the SFiles to be assembled.

There is a difference between .s and .S: only uppercase .S will be
passed through the preprocessor. Doing that is normally safe, and
definitely safe in the case of these files.
Work in progress. Compatible with Go 1.16 and Go 1.17.
@aykevl
Copy link
Member Author

aykevl commented Aug 28, 2022

Closing in favor of #3103.

@aykevl aykevl closed this Aug 28, 2022
@aykevl aykevl deleted the goasm2 branch August 28, 2022 21:52
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.

1 participant