Hello,
I am trying to redefine memory allocation functions for MKL by using function pointer i_malloc and friends as described in https://software.intel.com/en-us/node/528395. On 32bit Windows however I am facing a problem: I could not figure out what is the calling convention for those functions? Is it __cdecl, __stdcall, __fastcall? The i_malloc.h header just says
typedef void * (* i_malloc_t)(size_t size);
But depending on whether I set -Gz for compilation or not this may change the calling convention on this function. Am I missing something here or should the header explicitly specify the calling convention?
Anyway, what actually is the calling convention that MKL assumes for these functions?
Thanks,
Daniel