Re: [go-nuts] Cross-compilation of golang assembly via 'go tool asm'

2016-09-13 Thread pcj127
Thanks, great reference to gooOsArchFile() On Tuesday, September 13, 2016 at 11:04:44 AM UTC-6, ironi...@gmail.com wrote: > > > > On Tuesday, September 13, 2016 at 11:08:18 AM UTC-5, pcj...@gmail.com > wrote: >> >> My next question is which tool is responsible for selecting the correct >> sha1b

Re: [go-nuts] Cross-compilation of golang assembly via 'go tool asm'

2016-09-13 Thread ironiridis
On Tuesday, September 13, 2016 at 11:08:18 AM UTC-5, pcj...@gmail.com wrote: > > My next question is which tool is responsible for selecting the correct > sha1block_GOARCH.s? Is the the compiler, linker, or where? > See https://golang.org/pkg/go/build/ (under Build Constraints) And (as of Go 1

Re: [go-nuts] Cross-compilation of golang assembly via 'go tool asm'

2016-09-13 Thread pcj127
Thanks Aram and Michael, that helps a lot. I've studied https://github.com/golang/go/tree/master/src/crypto/sha1 which looks like a good example of having a pure-go fallback with architecture-specific assembly. My next question is which tool is responsible for selecting the correct sha1blo

Re: [go-nuts] Cross-compilation of golang assembly via 'go tool asm'

2016-09-13 Thread Aram Hăvărneanu
On Tue, Sep 13, 2016 at 6:19 AM, wrote: > My interpretation of golang's assembly is that it represents an intermediate > pseudo-language that is transformed via "instruction selection" to a > concrete form. Correct, but this pseudo-language is not portable between architectures. > Therefore, is

Re: [go-nuts] Cross-compilation of golang assembly via 'go tool asm'

2016-09-12 Thread pcj127
On Monday, September 12, 2016 at 9:58:58 PM UTC-6, Michael Hudson-Doyle wrote: > > > > On 13 September 2016 at 13:43, > wrote: > >> I'm implementing cross-compilation support in rules_go >> . This takes a low-level >> approach to building golang targets

Re: [go-nuts] Cross-compilation of golang assembly via 'go tool asm'

2016-09-12 Thread Michael Hudson-Doyle
On 13 September 2016 at 13:43, wrote: > I'm implementing cross-compilation support in rules_go > . This takes a low-level > approach to building golang targets that involves use of the individual > toolchain components such as 'go tool asm', 'go tool compi

[go-nuts] Cross-compilation of golang assembly via 'go tool asm'

2016-09-12 Thread pcj127
I'm implementing cross-compilation support in rules_go . This takes a low-level approach to building golang targets that involves use of the individual toolchain components such as 'go tool asm', 'go tool compile', 'go tool link', etc... Cross-compilatio