2 years ago

#49248

test-img

Xiaoyong Guo

nm and c++filter cannot demangle very long mangled c++ names?

when experimenting c++ template meta-programming, I constructed a template type that is recursively defined, which makes type name very long in mangled form(~4600 bytes) if recursion depth is greater than 4, both nm -C and c++filt can not demangle the long name. Is this a limitation of nm and c++filt or the limitation of underlying libary used for demangling?

Edit: After I posted this question, I tried the same thing on my MacBook, it turned out the on MacOs, nm and c++filt works properly for the very long mangled name.

c++

nm

c++filt

0 Answers

Your Answer

Accepted video resources