24

同样是 return 一个中间变量,为什么另一种代码的反汇编分配了两次空间?

 4 years ago
source link: https://www.v2ex.com/t/582872
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
程序员 - @amiwrong123 - 总所周知,函数体返回值那里没有&,就会返回一个中间变量。```cppclass sale {public: int i = 1;};sale add(const sale&

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK