On Sun, Apr 3, 2016 at 11:48 PM, Ian Lance Taylor wrote:
Since you have Go code that can be used instead of the asm code, the
simple fix is to use build tags so that the Go code is used when the
`gccgo` build tag is used.
I added gc and !gc build tags, instead of gccgo and !gccgo.

IIRC there is the possibility of the gc compiler changing its calling
convention in the distant future (e.g. pass some args in registers
instead of the stack). If so, we might need separate build tags (and
separate .s files, at least during transition) for the old and new
calling conventions. It may make sense then to have a build tag
convention for asm-syntax and/or calling convention, not just the gc
vs gccgo compiler, but that's probably another conversation for
another time.

You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 5 | next ›
Discussion Overview
groupgolang-dev @
postedApr 3, '16 at 12:20p
activeApr 4, '16 at 11:32a



site design / logo © 2022 Grokbase