In C / C ++ (in particular, I use MSVS), in what situation would you ever need to worry about defining a calling convention to define a function? Are they always important? Do you have the opportunity to choose the optimal agreement if necessary (for example, fastcall, etc.)?
Perhaps my understanding is missing, but I just donβt see when there will be a case when the programmer will need to take care of things similar to the order that arguments are pushed onto the stack, etc. I also donβt understand why compiler optimization will not be able to choose which circuit will work best for this particular function. Any knowledge that could give me would be wonderful. Thanks!
c ++ c calling-convention
Russel
source share