So what is the story about __fastcall? I just know that Borland uses it in all functions when something is returned.
Printable View
So what is the story about __fastcall? I just know that Borland uses it in all functions when something is returned.
if that's true then why not just put every thing into the register? (Ofcource there is a point doing that. I would just like to what what that point is.)
Because registers are quite small. Sixteen to thirty two bits a pop, times maybe four or six that you can access, depending on CPU type.
The stack, OTOH, can hold tons of data.
But isn't it then kind of dangerus when Borland 6.0 uses __fastcall in all it's funktions?:eek:
It would be tricky to implement, but not really dangerous if you knew what you were doing. And for 32 bit data types (pointers) it is faster. Not MUCH faster, but every little bit helps.
So it's them all or none of 'em?