x86 assembler question
        Posted  
        
            by b-gen-jack-o-neill
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by b-gen-jack-o-neill
        
        
        
        Published on 2010-05-15T23:02:16Z
        Indexed on 
            2010/05/15
            23:10 UTC
        
        
        Read the original article
        Hit count: 400
        
Hi, I have 2 simple, but maybe tricky questions. Let´s say I have assembler instruction: MOV EAX,[ebx+6*7] - what I am curious is, does this instruction really actually translates into opcode as it stands,so computation of code in brackets is encoded into opcode, or is this just pseudo intruction for compiler, not CPU, so that compiler before computes the value in brackets using add mul and so, store outcome in some reg and than uses MOV EAX,reg with computed value? Just to be clear, I know the output will be the same. I am interested in execution.
Second is about LEA instruction. I know what it does, but I am more interested wheather its real instruction, so compiles does not further change it, just make it into opcode as it stands, or just pseudo code for compiler to, again, first compute adress and than store it.
© Stack Overflow or respective owner