News for hackers. Stuff that matters.
Re:I love coding in C by weberc2 on Thursday December 26, 2019 @11:22AM (#21884823)
As far as I know, name mangling only exists because linkers don’t have a notion of namespaces. If you fix linkers, then there is no need to mangle.
Re:I love coding in C by maxxk on Thursday December 26, 2019 @01:43PM (#21885760)
And also because of function overloading in, say, C++. To link code two functions with the same identifier which differ only in signature (e.g. types of arguments), we need to pass them to linker as two different functions with different identifiers.