Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1175

how to related icc -S assembly code and objdump linked assembly code quickly?

$
0
0

As we all know, icc -S will print assembly code with symbol address not physical address. Such as:

..B1.20: 
        movslq    %r8d, %rax                                    #10.3        

        .align    16,0x90

..B1.21:                              

                movups    (%rdx,%rsi,8), %xmm0                          #11.12        

                movups    16(%rdx,%rsi,8), %xmm1                        #11.12

When using objdump -S ./xx.bin, the related assembly code as:

 402024:   49 63 c0                movslq %r8d,%rax 

402027:   66 0f 1f 84 00 00 00    nopw   0x0(%rax,%rax,1)  

40202e:   00 00  

402030:   0f 10 04 f2             movups (%rdx,%rsi,8),%xmm0  

402034:   0f 10 4c f2 10          movups 0x10(%rdx,%rsi,8),%xmm1

 

But the related process is so boring.  Is there a good way to relate the two? May icc compiler generate  linked assembly code with physical address?


Viewing all articles
Browse latest Browse all 1175

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>