2

I would like to make functions written in assembly available to my Go code. I have seen methods for linking functions written in Go assembler's syntax or linking object files using the gccgo toolchain.

However, ideally, I would like to be able to use NASM and the "gc" toolchain. I have been messing around with cgo/6g/6l, but had no luck so far.

1 Answer 1

1

You can use syso files as outlined in https://code.google.com/p/go-wiki/wiki/GcToolchainTricks, however there are next to no resources about it.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.