search for: helloworldwin32

Displaying 1 result from an estimated 1 matches for "helloworldwin32".

2009 Dec 09
2
[LLVMdev] Problem with code generated for call using stdcall convention
...bits memory model: --- declare x86_stdcallcc i8* @GetStdHandle(i32) define i32 @main() { %handle = call i8* @GetStdHandle(i32 -11) ret i32 0 } --- (This small modules that just retrieve the handle to stdout using WIN32 API). I'm converting 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...