Displaying 1 result from an estimated 1 matches for "01e80013".
Did you mean:
01b80013
2009 Dec 09
2
[LLVMdev] Problem with code generated for call using stdcall convention
...erting it to bytecode using:
llvm-as.exe -f helloworldwin32.ll
and running it with lli using:
lli.exe helloworldwin32.bc
which results into a crash.
When debbugging the lli crash, I found the following code being called by
llvm::ExecutionEngine::runFunctionAsMain():
---
01E80010 sub esp,4
01E80013 mov dword ptr [esp],0FFFFFFF5h
01E8001A call 7C812FD9
01E8001F xor eax,eax
01E80021 add esp,4
01E80024 ret
---
It is my understanding that the final "add esp, 4" should not be present
when using the stdcall convention as the callee is responsible for p...