questions about name mangling in C++

后端 未结 6 595
深忆病人
深忆病人 2020-11-29 03:23

I am trying to learn and understand name mangling in C++. Here are some questions:

(1) From devx

When a global function is overloaded, the gen

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-29 03:59

    Technically, it's "decorating". It sounds less crude but also mangling sort of implies that CreditInterest might get rearranged into IntCrederestit whereas what actually happens is more like _CreditInterest@4 which is, fair to say, "decorated" more than mangled. That said, I call it mangling too :-) but you'll find more technical info and examples if you search for "C++ name decoration".

提交回复
热议问题