Created
January 23, 2016 00:01
-
-
Save cjhanks/502c49ec6dda150370cf to your computer and use it in GitHub Desktop.
ExampleGO
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
func main() { | |
for i:= 0; i < 1000000; i++ { | |
400c00: 48 31 c0 xor %rax,%rax | |
400c03: 48 3d 40 42 0f 00 cmp $0xf4240,%rax | |
400c09: 7d 0b jge 400c16 <main.main+0x16> | |
400c0b: 48 ff c0 inc %rax | |
400c0e: 48 3d 40 42 0f 00 cmp $0xf4240,%rax | |
400c14: 7c f5 jl 400c0b <main.main+0xb> | |
400c16: c3 retq | |
... | |
0000000000400c20 <main.init>: | |
400c20: 64 48 8b 0c 25 f0 ff mov %fs:0xfffffffffffffff0,%rcx | |
400c27: ff ff | |
400c29: 48 3b 21 cmp (%rcx),%rsp | |
400c2c: 77 07 ja 400c35 <main.init+0x15> | |
400c2e: e8 dd a6 01 00 callq 41b310 <runtime.morestack00> | |
400c33: eb eb jmp 400c20 <main.init> | |
400c35: 48 0f b6 04 25 a0 16 movzbq 0x4616a0,%rax | |
400c3c: 46 00 | |
400c3e: 80 f8 00 cmp $0x0,%al | |
400c41: 74 0d je 400c50 <main.init+0x30> | |
400c43: 80 f8 02 cmp $0x2,%al | |
400c46: 75 01 jne 400c49 <main.init+0x29> | |
400c48: c3 retq | |
400c49: e8 c2 bf 00 00 callq 40cc10 <runtime.throwinit> | |
400c4e: 0f 0b ud2 | |
400c50: c6 04 25 a0 16 46 00 movb $0x2,0x4616a0 | |
400c57: 02 | |
400c58: c3 retq | |
400c59: 00 00 add %al,(%rax) | |
400c5b: 00 00 add %al,(%rax) | |
400c5d: 00 00 add %al,(%rax) | |
... | |
0000000000400c60 <runtime.(*TypeAssertionError).RuntimeError>: | |
concreteString string | |
assertedString string | |
missingMethod string // one method needed by Interface, missing from Concrete | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
func main() { | |
for i:= 0; i < 1000000; i++ { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment