Thread: __fastcall ?

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    160

    __fastcall ?

    So what is the story about __fastcall? I just know that Borland uses it in all functions when something is returned.

  2. #2
    Registered User
    Join Date
    Oct 2002
    Posts
    160
    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.)
    Well english isn't my first language, (it's instead a useless language called danish which only 5 milion people speak!!) so if you think my grammar SUCKS (it does by the way) than you're more then welcome to correct me.
    Hell I might even learn something

  3. #3
    Evil Member
    Join Date
    Jan 2002
    Posts
    638
    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.

  4. #4
    Registered User
    Join Date
    Oct 2002
    Posts
    160
    But isn't it then kind of dangerus when Borland 6.0 uses __fastcall in all it's funktions?
    Well english isn't my first language, (it's instead a useless language called danish which only 5 milion people speak!!) so if you think my grammar SUCKS (it does by the way) than you're more then welcome to correct me.
    Hell I might even learn something

  5. #5
    Evil Member
    Join Date
    Jan 2002
    Posts
    638
    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.

  6. #6
    Registered User
    Join Date
    Oct 2002
    Posts
    160
    So it's them all or none of 'em?
    Well english isn't my first language, (it's instead a useless language called danish which only 5 milion people speak!!) so if you think my grammar SUCKS (it does by the way) than you're more then welcome to correct me.
    Hell I might even learn something

Popular pages Recent additions subscribe to a feed