Analysis of C++ function overload implementation

Wenbo Zhang · Journal of Baoji University of Arts and Sciences · 2006

Aim To analyze implementation of function overload,one of important phrasing in C++ language,applying the result to carry on analysis to the related phrasing characteristic in the C++ language nd C language.Methods Adop Visual C++ compiler as experiment tool,make use of the COD file of the compiler creation,compare the source code with correspond of assembler code,by inductive reasoning,get conclusion.Results Acquired the key strategy of realization of the function overload in C++ language,acquired a part to code rule,explained related phrasing phenomenon.Conclusion Name mangling the strategy is the key of realization of the function overload,also is the foundation that carry out type-safety linking,can make use of that strategy to carry on explain to the related phrasing of the function in the C language.

Read the paper · More papers on PaperTik