Re: [Dev-C++] @ symbol at the end of function names?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <or...@vp...> - 2003-09-07 20:11:49
|
Tony M. wrote: > This is "name mangling", and it allows for function overloading. > > OROSZI Balázs wrote: > >> Hi! >> >> I saw in some DLLs and .def files, that there is an @ symbol at the >> end of funtion names, then there is a number after it. I ask, what are >> they for? Why are there these numbers? What purpose do they serve? No, that is not name mangling. Name mangling does waaaay much more (and different) than just that @ symbol :) But I have found it on the Net after some hard searching (yeah, try to search for @ :/ anyway. That @ symbol is used to specify a number after it. This number represents the number of bytes that the linker reserves in the stack for arguments passed to the function. For example: MyFunc(int) would become MyFunc@4 The compiler reserves 4 bytes for arguments. The compiler also uses this number and the "@" sign as part of the function names. Thanks for your answer btw, at least I know there are people here who want to help others, and answer really fast. Thanks again. -- Greetings, Balázs |