Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs about differences between Emgo and Go? #3

Closed
bkaradzic opened this issue Apr 8, 2017 · 3 comments
Closed

Docs about differences between Emgo and Go? #3

bkaradzic opened this issue Apr 8, 2017 · 3 comments

Comments

@bkaradzic
Copy link

I just noticed this project, it looks cool, but documentation is a little bit sparse.

Is there one page summary about differences between Emgo and Go?

@ziutek
Copy link
Owner

ziutek commented Apr 9, 2017

Please read doc/spec.txt

@bkaradzic
Copy link
Author

👍 Ah cool, didn't see it linked elsewhere, but totally missed it when I was browsing repo. If you rename files to .md GitHub will automatically format it with markdown.

@ziutek
Copy link
Owner

ziutek commented Apr 9, 2017

You are right.Fixed.

@ziutek ziutek closed this as completed Nov 7, 2017
ziutek pushed a commit that referenced this issue May 30, 2018
func main() { panic("foo"); } with previous (union based) definition of interface and type casting:

20000040:   b580          push    {r7, lr}
20000042:   2300          movs    r3, #0
20000044:   b08c          sub     sp, #48 ; 0x30
20000046:   e9cd 3308     strd    r3, r3, [sp, #32]
2000004a:   2603          movs    r6, #3
2000004c:   4f0c          ldr     r7, [pc, #48]   ; (20000080 <main$main+0x40>)
2000004e:   9706          str     r7, [sp, #24]
20000050:   9607          str     r6, [sp, #28]
20000052:   ac06          add     r4, sp, #24
20000054:   e894 000f     ldmia.w r4, {r0, r1, r2, r3}
20000058:   ad02          add     r5, sp, #8
2000005a:   e885 000f     stmia.w r5, {r0, r1, r2, r3}
2000005e:   9603          str     r6, [sp, #12]
20000060:   e895 000f     ldmia.w r5, {r0, r1, r2, r3}
20000064:   e884 000f     stmia.w r4, {r0, r1, r2, r3}
20000068:   ab0c          add     r3, sp, #48     ; 0x30
2000006a:   4a06          ldr     r2, [pc, #24]   ; (20000084 <main$main+0x44>)
2000006c:   f843 2d08     str.w   r2, [r3, #-8]!
20000070:   e893 0003     ldmia.w r3, {r0, r1}
20000074:   e88d 0003     stmia.w sp, {r0, r1}
20000078:   e894 000f     ldmia.w r4, {r0, r1, r2, r3}
2000007c:   f000 f896     bl      200001ac <panic>
20000080:   20001c20      .word   0x20001c20
20000084:   20001bb4      .word   0x20001bb4

func main() { panic("foo"); } with new interface and type casting:

20000040:   b500          push    {lr}
20000042:   2300          movs    r3, #0
20000044:   b08d          sub     sp, #52 ; 0x34
20000046:   e9cd 3304     strd    r3, r3, [sp, #16]
2000004a:   4b0a          ldr     r3, [pc, #40]   ; (20000074 <main$main+0x34>)
2000004c:   9302          str     r3, [sp, #8]
2000004e:   2303          movs    r3, #3
20000050:   9303          str     r3, [sp, #12]
20000052:   ab02          add     r3, sp, #8
20000054:   cb0f          ldmia   r3, {r0, r1, r2, r3}
20000056:   ac06          add     r4, sp, #24
20000058:   e884 000f     stmia.w r4, {r0, r1, r2, r3}
2000005c:   ab0c          add     r3, sp, #48     ; 0x30
2000005e:   4a06          ldr     r2, [pc, #24]   ; (20000078 <main$main+0x38>)
20000060:   f843 2d08     str.w   r2, [r3, #-8]!
20000064:   e893 0003     ldmia.w r3, {r0, r1}
20000068:   e88d 0003     stmia.w sp, {r0, r1}
2000006c:   e894 000f     ldmia.w r4, {r0, r1, r2, r3}
20000070:   f000 f896     bl      200001a0 <panic>
20000074:   20001bc0      .word   0x20001bc0
20000078:   20001b54      .word   0x20001b54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants