471,084 Members | 1,062 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,084 software developers and data experts.

C++ Question __Fastcall

Ok ive been looking at the code and one of the functions that i see is the
__Fastcall i have researched it and can not figure out what exacly it does or why it is called. I would appricate any help thank you
Apr 27 '06 #1
3 7967
Banfa
9,065 Expert Mod 8TB
It's a Microsoft specific extension, it speeds up function calls by passing up to 2 of the parameters in processor registers rather than on the stack.

If you use it then you must make sure that when you call any functions declared with it you do so in the presence of a prototype as it alters the code that is auto generated for pushing variables onto and poping variables off the stack.
Apr 27 '06 #2
CAN somebody can give me some simple c++ code just to know how to use __fastcall.Actually borland c++ is giving an error of "conflicting type modifiers "while using this.so kindly forward me some simple sample code using this for 16 bit application
Mar 2 '07 #3
horace1
1,510 Expert 1GB
CAN somebody can give me some simple c++ code just to know how to use __fastcall.Actually borland c++ is giving an error of "conflicting type modifiers "while using this.so kindly forward me some simple sample code using this for 16 bit application
have a look at this tutorial on calling conventions
http://www.programmers-corner.com/tutorial/16
Mar 2 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by Christopher Benson-Manica | last post: by
3 posts views Thread by zero | last post: by
4 posts views Thread by m | last post: by
17 posts views Thread by Sean Kenwrick | last post: by
2 posts views Thread by bujarmetaj | last post: by
1 post views Thread by Noah Roberts | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.