Closed leonklingele closed 7 years ago
There is a "wrapping" Go file necessary that will be the interface to call into the assembly version listing the arguments etc. Ie if you look at the example in the README file it is like this:
//go:noescape
func _MultiplyAndAdd(vec1, vec2, vec3, result unsafe.Pointer)
func MultiplyAndAdd(someObj Object) {
_MultiplyAndAdd(someObj.GetVec1(), someObj.GetVec2(), someObj.GetVec3(), someObj.GetResult()))
}
So the assembly should go to main_amd64.s
and the go file should be named `main_amd64.go'.
See also for more examples https://github.com/minio/c2goasm/tree/master/test
Steps to reproduce:
How to create this companion file and why is it required?