程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> C語言 >> C++ >> C++入門知識 >> 從匯編看c++成員函數指針(二)

從匯編看c++成員函數指針(二)

編輯:C++入門知識

#include <cstdio>
          Z :  X,   * zp = &* xp =* yp =(X::*xgp1)() = &(X::*xgp2)() = &(Y::*ygp3)() = &(Y::*ygp4)() = &(Z::*zgp1)() = &(Z::*zgp2)() = &(Z::*zgp3)() = &(Z::*zgp4)() = &, &, &, &, &, &, &, &, &->*->*->*->*->*->*->*->*->*->*->*->*

        eax, DWORD PTR [ecx]
        DWORD PTR [eax]
??_9X@@$BA@AE ENDP                    


        eax, DWORD PTR [ecx]
        DWORD PTR [eax+]
??_9X@@$B3AE ENDP                    
_TEXT    ENDS



        DWORD PTR _xgp1$[ebp], OFFSET ??_9X@@$BA@AE 



        DWORD PTR _xgp2$[ebp], OFFSET ??_9X@@$B3AE 



        DWORD PTR _ygp3$[ebp], OFFSET ??_9X@@$BA@AE 



        DWORD PTR _ygp4$[ebp], OFFSET ??_9X@@$B3AE 



        DWORD PTR $T4081[ebp], OFFSET ??_9X@@$BA@AE 
        DWORD PTR $T4081[ebp+], 
        ecx, DWORD PTR $T4081[ebp]
        DWORD PTR _zgp1$[ebp], ecx
        edx, DWORD PTR $T4081[ebp+]
        DWORD PTR _zgp1$[ebp+], edx
                                    
                                    
                                    
    
    



        DWORD PTR $T4082[ebp], OFFSET ??_9X@@$B3AE 
        DWORD PTR $T4082[ebp+], 
        ecx, DWORD PTR $T4082[ebp+    DWORD PTR _zgp2$[ebp+

        DWORD PTR $T4083[ebp], OFFSET ??_9X@@$BA@AE 
        DWORD PTR $T4083[ebp+], 
        eax, DWORD PTR $T4083[ebp+    DWORD PTR _zgp3$[ebp+

        DWORD PTR $T4084[ebp], OFFSET ??_9X@@$B3AE 
        DWORD PTR $T4084[ebp+], 
        edx, DWORD PTR $T4084[ebp+    DWORD PTR _zgp4$[ebp+], edx


        ecx, DWORD PTR _zp$[ebp]
        DWORD PTR _xgp1$[ebp]



        ecx, DWORD PTR _zp$[ebp]
        ecx, DWORD PTR _zgp1$[ebp+]
                                    
                                    
        DWORD PTR _zgp1$[ebp]



        ecx, DWORD PTR _xp$[ebp]
        DWORD PTR _xgp1$[ebp]

    

    

        ecx, DWORD PTR _zgp2$[ebp+

    

        DWORD PTR _zp$[ebp], 
        SHORT $LN5@main
        ecx, DWORD PTR _zp$[ebp]
        ecx, 
        DWORD PTR tv192[ebp], ecx
        SHORT $LN6@main
$
        DWORD PTR tv192[ebp], 
$
        ecx, DWORD PTR tv192[ebp]
        DWORD PTR _ygp3$[ebp]



        ecx, DWORD PTR _zp$[ebp]
        ecx, DWORD PTR _zgp3$[ebp+]
        DWORD PTR _zgp3$[ebp]



        ecx, DWORD PTR _yp$[ebp]
        DWORD PTR _ygp3$[ebp]
    
    



        DWORD PTR _zp$[ebp], 
        edx, 
    
        DWORD PTR tv202[ebp], 
    

        ecx, DWORD PTR _zgp4$[ebp+

        DWORD PTR _ygp4$[ebp]


        ecx, DWORD PTR _zp$[ebp]
        ecx, DWORD PTR _zgp4$[ebp+]
                                    
                                    
        DWORD PTR _zgp4$[ebp]

zgp4 = ygp4
        eax, DWORD PTR _ygp4$[ebp]
        DWORD PTR $T4092[ebp], eax
        DWORD PTR $T4092[ebp+], 
        ecx, DWORD PTR $T4092[ebp]
        DWORD PTR _zgp4$[ebp], ecx
        edx, DWORD PTR $T4092[ebp+]
        DWORD PTR _zgp4$[ebp+], edx

 

          

         

             

 

 

 

 

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved