This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: memory function
Hi, you can insert labels into the code at the points you desire ( ie. before and after ) and then resolve them at runtime.
I did a trick like this in order to place code at a desired location ( stupid linker tricks :-) ... perhaps you should ask on the binutils list ? ).
I fooled around until I managed to put a marker before and after the code I wanted to run, and then got the addresses at runtime ..
Just a thought, Lars Segerlund.
( ps. I tried to find the code but it's long dead and I can't find it ).
On Mon, 9 Aug 2004 15:06:33 +0300 (IDT)
Marcelo Roitburd <marcelo@jct.ac.il> wrote:
>
> Hi ppl,
>
> I know i wrote before a few time about this , but i need to write again.
>
> i read a the list at net of the gcc help about this i can't found a real
> something that help me.
>
> i need to know how much memory use each function like a sizeof function ,
> that ppl write here before.
>
> if someone can send me some example with use class. i read about mprof
> some one know something like about this? or if gprof have some argument to
> this?
>
> thanks very thanks
>
>
> -Marcelo
>