Advertisement

Forcing stack calling conversion in Watcom C++

Started by August 12, 1999 09:33 AM
-1 comments, last by FlyFire 25 years, 4 months ago
I'm compiling my code using register calling conversion (-5r switch - parameters passed thru registers) for generation faster and smaller code and i need to force parameters to be passed thru stack for some my own and some system functions. How i can do this?
I found a way to do this using __cdecl directive. For example, i'm declaring my function like that:
void* __cdecl map_real_pointer(word,word);

But how i can do this with system functions and functions placed in other modules?

FlyFire/CodeX
http://codexorg.webjump.com

This topic is closed to new replies.

Advertisement