Jump to content

View more

Image of the Day

Inventory ! Va falloir trouver une autre couleur pour le cadre D: #AzTroScreenshot #screenshotsaturday https://t.co/PvxhGL7cOH
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Forcing stack calling conversion in Watcom C++

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
No replies to this topic

#1 FlyFire   Members   

122
Like
Likes
Like

Posted 12 August 1999 - 03:33 AM

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





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.