I noticed that ASAN checker in the Go source code is defined using CGO 
https://github.com/golang/go/blob/master/src/runtime/asan/asan.go
But the C ASAN functions are called from the Go runtime using assembly code 
instead of a common CGO call. 
https://github.com/golang/go/blob/master/src/runtime/asan_amd64.s#L36

This discovery has sparked my interest, and I am curious to know if I can 
employ a similar method to execute my own C functions from my Go code. 
Could you clarify if this is a viable option?

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/062a3506-cd4a-45ef-b05e-5730e6923c43n%40googlegroups.com.

Reply via email to