MrChefman Geschrieben 13. Dezember 2006 Geschrieben 13. Dezember 2006 Hallo. Was genau tut der Modifier __fastcall? Ich habe zwar nachfolgende Erklärung aus der Hilfe; das sagt mir aber auch nicht so viel. Was sind das für Register, die beschreiben werden? Warum brauchen alle Formulare (zumindest beim BCB) diesen Modifier? Use the __fastcall modifier to declare functions that expect parameters to be passed in registers. The first three parameters are passed (from left to right) in EAX, EDX, and ECX, if they fit in the register. The registers are not used if the parameter is a floating-point or struct type. All form class member functions must use the __fastcall convention. The compiler treats this calling convention as a new language specifier, along the lines of _cdecl and _pascal Functions declared using _cdecl or _pascal cannot also have the _fastcall modifiers because they use the stack to pass parameters. Likewise, the __fastcall modifier cannot be used together with _export. The compiler prefixes the __fastcall function name with an at-sign ("@"). This prefix applies to both unmangled C function names and to mangled C++ function names. For Microsoft VC++ style __fastcall implementation, see __msfastcall and __msreturn. Note: The __fastcall modifier is subject to name mangling. See the description of the -VC option.
Guybrush Threepwood Geschrieben 13. Dezember 2006 Geschrieben 13. Dezember 2006 Was sind das für Register, die beschreiben werden? Register (Computer) - Wikipedia
Empfohlene Beiträge
Erstelle ein Benutzerkonto oder melde Dich an, um zu kommentieren
Du musst ein Benutzerkonto haben, um einen Kommentar verfassen zu können
Benutzerkonto erstellen
Neues Benutzerkonto für unsere Community erstellen. Es ist einfach!
Neues Benutzerkonto erstellenAnmelden
Du hast bereits ein Benutzerkonto? Melde Dich hier an.
Jetzt anmelden