search for: _stdcall

Displaying 4 results from an estimated 4 matches for "_stdcall".

Did you mean: stdcall
2009 Nov 20
0
[LLVMdev] fastcc and ExecutionEngine::getPointerToFunction()
...a pointer to that. > > My question is, is there code that would get into trouble because of > this? Sure. You could be passing it in as a function pointer to another function, that's planning to call it with fastcc calling convention. Or worse, you might be planning to call it with _stdcall (say, on Windows) and discarding the calling convention would be actively harmful. In other words, please don't do this. Produce an llvm::Function to thunk if you must. Nick > For example, someone who is aware of this might be doing inline asm to > produce a fastcc call through the p...
2009 Nov 20
1
[LLVMdev] fastcc and ExecutionEngine::getPointerToFunction()
On Nov 19, 2009, at 10:20 PM, Nick Lewycky wrote: > > Sure. You could be passing it in as a function pointer to another > function, that's planning to call it with fastcc calling convention. > > Or worse, you might be planning to call it with _stdcall (say, on > Windows) and discarding the calling convention would be actively harmful. > > In other words, please don't do this. Produce an llvm::Function to thunk > if you must. I very much agree with Nick here. There are a multitude of things you may be wanting to do and ways t...
2009 Nov 19
2
[LLVMdev] fastcc and ExecutionEngine::getPointerToFunction()
Yesterday I realised that if a Function has the calling convention set to "fast", then it is a bad idea to call it through the function pointer one gets from ExecutionEngine::getPointerToFunction(). The problem is that when calling it from my C++ program, the call will be made C-style, while the function expects to be called the fastcc way. Could LLVM either warn the user of this,
2006 Oct 18
2
Problems building package under Windows (PR#9303)
...Help Workshop. There seems to be a problem calling MS HELP (hcc.exe) unless the path is specified as DOS filenames without spaces. * It would be useful if you told where to get Mingw, Perl and MS Help from. Maybe I am using wrong versions? * The manual needs to tell whether to use _cdecl or _stdcall calling convention for C/C++ code under Windows32. * A full working example of a package with a small C/C++ code would be very helpful. The package should contain all necessary source files and the commands to build and install it. ------------------------------------------------------------...