Calling virtual elf functions under windows -> Adding ASM code

Hello everyone,

I’m sorry for “flooding” your inbox, but I wanted to extend my message which is shown below. The problem is still not solved and I’m more confused then before.
I compiled the code - the one seen in the pictures to elf bc and to msvc (pecoff) bc. Then I used llc to generate assembler output.

In my opinion the involved functions are acting exactly the same. There are only some registers swapped. I should mention: when using the msvc bc code, then the calls via the interface are working.

I attach the assembly code of the involved code to. Could please anyone explain me the difference, which could cause the crash?

Kind regards
Björn

Calling.PNG

CM_Elf_cpp.PNG

Interface_H.PNG

SimpleResult_H.PNG

asmELF.s (1.39 KB)

asmMSVC.s (2.32 KB)