0 votes
in General Knowledge by (773k points)
How is leaq used?

1 Answer

0 votes
by (773k points)
Best answer
1) computing addresses without a memory reference
leaq src, dest -> sets dest to the address computed by src expression

2) Computing arithmetic in the form of x + k*y. (using a screwdriver as a hammer).
Ex: leaq 7(%rdx,%rdx,4),%rax sets %rax to 5x + 7
Welcome to the Answerine , a great place to find, read and share your favorite questions and answers.