[go-nuts] Re: go compile for memory allocation

2016-09-29 Thread 刘桂祥
https://github.com/golang/go/issues/17275 在 2016年9月29日星期四 UTC+8下午2:57:08,Dave Cheney写道: > > Don't forget to log that issue. -- 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 a

[go-nuts] Re: go compile for memory allocation

2016-09-28 Thread Dave Cheney
Don't forget to log that issue. -- 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.

[go-nuts] Re: go compile for memory allocation

2016-09-28 Thread Dave Cheney
-gcflags=-m will answer your question (hint, if the arguments to make are not constants, the compiler cannot be sure that the allocation will fit on the stack). However, with the SSA compiler, the arguments could be deduced to be constant, and this optimisation could be improved. Please conside