英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论