现在如何使用显式编译标志进行优化?

huangapple go评论64阅读模式
英文:

How are explicit compilition flags used for optimization nowadays?

问题

目标是编译一个用于生产的二进制文件。我发现一些以前使用的标志,比如-l,现在不再支持。

现在的优化是如何使用显式编译标志的?还是默认情况下进行优化?

英文:

The goal is compile a binary for production. I've found out that some flags, such as -l that used to be used, no longer supported.

How are explicit compilition flags used for optimization nowadays? Or is it optimized by default?

答案1

得分: 0

现在编译生产代码时,不再使用显式编译标志进行优化。

标准的Go编译器gc默认是一个优化编译器。

英文:

> How are explicit compilition flags used for optimization nowadays?

No flags are use for optimization when compiling production code nowadays.

> Or is it optimized by default?

The standard Go compiler gc is an optimizing compiler by default.

huangapple
  • 本文由 发表于 2022年1月5日 20:39:48
  • 转载请务必保留本文链接:https://go.coder-hub.com/70593030.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定