Re: sizeof(function) functionality

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jul  6, 2003, Kristis Makris <kristis.makris@xxxxxxx> wrote:

> Other than instantiating a volatile variable right after a function and
> evaluating variable - &funcname, is there another way of retrieving the
> size a function occupies in memory using gcc ?

First, this won't get what you want, because variable will likely be
placed in a different section.  I can't think of any clean way to do
this in C, especially if you consider functions-as-sections as a
possibility.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux