编译器如何选择asm _ *。S文件的体系结构?

时间:2018-01-15 15:39:56

标签: go cross-platform

我想知道Go编译器如何选择汇编程序文件的体系结构,例如' sync/atomic'。有编译器标志吗?

1 个答案:

答案 0 :(得分:2)

默认情况下,Go编译器以您正在运行的体系结构为目标。您可以设置(max-width)环境变量来覆盖它。请参阅:https://golang.org/pkg/go/build/