https://goo.gl/Ljrg9m
Nice talk! Matt himself is really knowledgeable and easy going person, one of the best talk for 2017 CppCon.
Instruction:
lea (load effective address)
struct Point { int xcoord; int ycoord; };
int y = points[i].ycoord; // MOV EDX, [EBX + 8*EAX + 4] ; right side is "effective address" int *p = &points[i].ycoord; // LEA ESI, [EBX + 8*EAX + 4] ; load the address in ESI
Reference:
http://vsdmars.blogspot.com/2017/11/assembly-note.html
http://www.jagregory.com/abrash-zen-of-asm/
https://www.amazon.com/Programming-Ground-Up-Jonathan-Bartlett/dp/1616100648
Tools:
http://quick-bench.com
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.