RE: [Dev-C++] @ symbol at the end of function names?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: P.D. v. Z. <pa...@my...> - 2003-09-09 07:39:52
|
Well, it's a number you can define yourself... you can give it any arbitrary value. If it was something critical as the stack size for example, I don't think they'd let you specify it yourself. The numbers in the .def files (after the @ symbol) get put there by the developers who create the DLL, not by the compiler. And now I know the reason why you can use these numbers as well.... here's an excerpt from a webpage I found: "Module definition file In conventional systems, DLLs may export by name or by ordinal. Symbian OS only supports exporting by ordinal. Exporting by ordinal reduces the time taken to find the item in the DLL export table and also reduces the size of the DLL as names need not be stored. Ordinals are used for accessing the address of a function in the DLL export table. A module definition file (.def) is a text file which lists the exported functions of a DLL; it is used in an ordinal build to insert ordinal information into the DLL export table." Don't know if this holds exactly true for all .def files, since this is from the Symbian website, but it's a start :) -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of OROSZI Bal=E1zs Sent: Monday, September 08, 2003 9:47 PM To: dev...@li... Subject: Re: [Dev-C++] @ symbol at the end of function names? P.D. van Zelst wrote: > The @ symbol in .def files has nothing to do with name mangling, stack > sizes, or whatever. They're ordinal numbers you can optionally give to > the functions you export from the DLL. Don't know the exact use of=20 > those though.... never had to look it up, I just always put them in=20 > there out of habit :) Are you sure? I thought it was stack size. Somehow, I think it is stack=20 size, as if a funcion takes 1 int, then the number is 4, if takes 2=20 ints, then the number is 8, if 3 ints, it is 12. That looks like a=20 pattern for sure. -- Greetings, Bal=E1zs ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |