Goal "best" practice is that there is no need to tinker with -gcflags, and this is already true for optimization.
In practice -gcflags -N tends to make the generated code easier to debug, but that is a sort of a bug that we're trying to fix by improving the compiler's Dwarf generation skills. On Monday, February 27, 2017 at 7:17:39 PM UTC-5, jamalsm...@gmail.com wrote: > > What are some best practices for general purpose -gcflags to use for > debugging and conversely for optimizing code? > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.