Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You're right, it turns out what I was thinking of was just the Name Mangling convention, which looks like it isn't standardized either.


The name mangling is part of the ABI. It's super complicated in C++ because the functions can be overloaded and have variable amount of arguments. The rules are compiler and version and flags specific.

P.S. Name mangling is what define that the function "int print(char*)" will become "___4print@4" in the compiled DLL. All the functions in a DLL are listable and have a name, that's how they are found.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: