My asm knowledge is so limited, I need to know the following codes:
movl %%esp %0
Does %0 represent a register, a memory address, or something else? What does the %0 mean?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It represents some input/output operand. It allows you to make use of your C variables in your assembly code. This page has some nice examples.
%0is just the first input/output operand defined in your code. In practice, this could be a stack variable, a heap variable or a register depending on how the assembly code generated by the compiler.For example:
%0isbin this case and%1isa.