Home > OS >  How are explicit compilition flags used for optimization nowadays?
How are explicit compilition flags used for optimization nowadays?

Time:01-06

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?

CodePudding user response:

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.

  •  Tags:  
  • Related