Call switching for C ++ functions

Here is my previous question about switching call calls. However, C ++ uses a different calling convention (thiscall) and may require some other asm code. Can someone explain the differences and point out or provide some code snippets that switch C ++ calls (preferably in GCC inline asm)?

Thanks James

+3
source share
2 answers

The code indicated in the previous question should work fine.

thiscall , . thiscall (, , this ecx); . .

, , , (, ) .

, , , ++ thiscall - ( , Microsoftism... g++ ).

+2

, ABI ++ .

, , , ++.

, , ( ( ) ).

+1

Source: https://habr.com/ru/post/1716786/


All Articles