Re: temp obj created by compiler

2005-02-14 Thread Marc Espie
In article <[EMAIL PROTECTED]> you write: >Thanks Jon, > >Can anyone throw more light on this. > Stop telling us what you want to do, explain to us WHY you want to do it. There are lots of different reasons for which you might want to know more about temporary object generation, and we can probab

Re: temp obj created by compiler

2005-02-11 Thread san san
Thanks Jon, Can anyone throw more light on this. Regards, Sanjiv --- Jonathan Wakely <[EMAIL PROTECTED]> wrote: > On Fri, Feb 11, 2005 at 06:08:55AM -0800, san san > wrote: > > > Hi Jon, > > > > Thanks again for replying. Let me clarify my > problem: > > I have an assembly file of a .cpp file,

Re: temp obj created by compiler

2005-02-11 Thread Jonathan Wakely
On Fri, Feb 11, 2005 at 06:08:55AM -0800, san san wrote: > 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. Ah, I see what you mean now - but I pro

Re: temp obj created by compiler

2005-02-11 Thread san san
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 t

Re: temp obj created by compiler

2005-02-11 Thread Jonathan Wakely
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 > h

Re: temp obj created by compiler

2005-02-11 Thread san san
Hi Jonathan & Everyone, Thanks for your reply. Yes, as you pointed out, it will create only 2 temporaries as below: X a(1); sub r3, fp, #16 mov r0, r3 mov r1, #1 bl X::X[in-charge](int) a = f(a); sub r3, fp, #24 sub r2, fp,