Call agreement

xiaoxiao2021-03-06  86

C , C #, design mode ...

C / C - function call conventions analysis

Housisong - Monday 12 01, 2003 4:34 AM Article topic: Function call conventions analysis

Function call agreement analysis Housisong@263.net Thank: PORA 2003.12.01 Preface: I have little to write articles, try writing articles to www.allaboutprogram.com/bb friends, is also a very good practice; The function call convention in C is mainly, the interpretation is mainly from the perspective of assembly; the compiler and platform I use: Windowsxp Celeron 1G VC6 (my main tool) / delphi6 / C Builder6; limited to levels and The limitations of knowledge, some contents may be one-sided or wrong; 1: Function call convention; function call agreement is a function of the function caller and the called function body about parameter delivery, return value transfer, stack clearance, register use It is an agreement; it is a powerful, function caller and function body that requires a different call agreement, which will cause a program to perform an error. It must be regarded as part of a function declaration; two: Common function call agreements The function call convention in VC6;