The question is rather vague, though after making a few assumption
here are some hopefully useful pointers:

You can compare the different generated code snippets if you use -S
during compilation:
go tool compile -S mytestfile.go

A Quick Guide to Go's Assembler: https://golang.org/doc/asm
The go compilers implement this specification: https://golang.org/ref/spec

(Similary to Jan, for code please use only links to play.golang.org,
that's enough.)

hth


On 7/17/19, jessie.gocot...@rococoglobaltech.com
<jessie.gocot...@rococoglobaltech.com> wrote:
> Can somebody explain this code?
> How is the cpu doing? better than for{} and select {} in CPU usage?
>
> package main
>
> func main() {
> start:
>     goto start
> }
>
>
> https://play.golang.org/p/BZ-yfDFLgV8
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/17e87e55-5429-459d-8d68-66261c7d67dc%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CA%2BctqrpyirggYY%3DM05F%2B0MJVbpXt%3DRtTOJsrvMa8B61%2BHqaphg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to