1
我想用匯編編寫的函數可用於我的Go代碼。我見過methods for linking functions written in Go assembler's syntax或linking object files using the gccgo toolchain。鏈接使用任意目標文件(程序集)?
但是,理想情況下,我希望能夠使用NASM和「gc」工具鏈。我一直在搞cgo/6g/6l,但到目前爲止沒有運氣。
我想用匯編編寫的函數可用於我的Go代碼。我見過methods for linking functions written in Go assembler's syntax或linking object files using the gccgo toolchain。鏈接使用任意目標文件(程序集)?
但是,理想情況下,我希望能夠使用NASM和「gc」工具鏈。我一直在搞cgo/6g/6l,但到目前爲止沒有運氣。
您可以使用在https://code.google.com/p/go-wiki/wiki/GcToolchainTricks中概述的syso文件,但是沒有關於它的資源。