From Jason Turner
Watch on YouTube

Summary

This episode explains C++ name mangling, the process by which compilers encode function and variable names to support function overloading and other language features. Jason demonstrates how to view mangled names using the `nm` command-line tool and demangle them with `c++filt`. The core focus is on runtime demangling, showing how to use the GNU C++ ABI's `__cxa_demangle` function to convert mangled names back to human-readable format in your code, with proper memory management to avoid leaks.

Resources

Tags