Of course you can - that's what ASM is for? But the OP is asking if
you can use C/C++ to capture the activation record. I am not sure
where this requirement comes from but a short answer is no.
Cheers.
>
> On Jul 4, 8:05 pm, "Sandeep Mahapatra" <sandyisc...@gmail.com> wrote:
> > hi Rohit,
> > You can push a dummy record onto a stack using a function call, but you
> > cannot manipulate the stack in C++. I mean, like in assembly language
> > programming u know the address of the stack segment and hence can easily
> > work with the stack, modifying the activation records and all.
> > But C++ doesnot provide a way to do that.
> >
> > Maybe i'm wrong, but i dont know any technique to access the stack in C++.
> > If somebody knows, i'll really appresiate his/her help.
> >
> > On Fri, Jul 4, 2008 at 1:27 PM, Rohit Jog <rohitjo...@gmail.com> wrote:
> >
> > > So does that mean from C/C++ i cannot push dummy record on to the
> > > stack?
> >
> >
>
> >
>
--
A. It messes the natural order in which we read.
Q. What's with it?
A. Top-Posting,
Q. What is the most annoying thing on emails and posts.