Hi Jon, Thanks again for replying. Let me clarify my problem: I have an assembly file of a .cpp file, from the assembly file i want to figure out where the compl has created temp objects. For this i thought of looking for copy-ctor becuase temp obj. are created using copy-ctors. I am not sure if there is any other way by which i can figure out that. I hope i am clear this time :).
Regards, San --- Jonathan Wakely <[EMAIL PROTECTED]> wrote: > On Fri, Feb 11, 2005 at 05:44:52AM -0800, san san > wrote: > > > Hi Jonathan & Everyone, > > Hello again San, > > > What i want to know is how to find what are the > > temporaries inserted by the compl. > > I don't think I understand your question properly. > > > I tried looking into the ABI but couldn't get much > > help. Is there any way i can figure out the > > temporaries inserted by the compl. > > The compiler creates and destroys objects as > dictated by the C++ > standard. If the language rules require a temporary > object to be > created then the compiler will create one. > > Your code passes objects by value, not by reference, > which causes > objects to be created and destroyed. > > Apologies if I've misunderstood you, > > jon > > -- > "Political satire became obsolete when Henry > Kissinger was awarded the > Nobel Prize." > - Tom Lehrer > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com