How to know some info?

johncaponski wolfomaster@yahoo.es
Mon Nov 9 16:07:00 GMT 2009


As I can find the main operation is the SUBL one, between what I think is the
content of the matrix, stored in ebx register
and something that uses this content that is stored int edx register, but I
dont know what it is...

...
movl    (%eax), %ebx  <-- Here I store Matrix[i][j] into ebx register
addl    $512, %ecx	
leal    0(,%ebx,8), %edx <-- Here I store sth in edx... WHAT!!!??
subl    %ebx, %edx	
movl    %edx, (%eax)	 <-- Here I store the difference into Matrix[i][j]
addl    $512, %eax	<-- Next position for the Matrix
cmpl    $65536, %ecx
jne     .L3
...


Andrew Haley wrote:
> 
> johncaponski wrote:
>> This is what I have. But there are some problems, I don't know how could
>> I
>> know the number of parameters the function receives and the type of the
>> one
>> returned...
> 
> Arguments are passed on the stack.  The assembly code you posted has no
> arguments.
> 
> Int arguments are returned in eax.  As far as I can see the assembly code
> doesn't return anything.
> 
> Andrew.
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/How-to-know-some-info--tp26157754p26268950.html
Sent from the gcc - Help mailing list archive at Nabble.com.



More information about the Gcc-help mailing list