This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: memory function
Hi Marcelo,
In code, there is no language specified reliable way to determine the size
of a function. There are a few suspect tricks you could try (such as taking
the address of the NEXT function in the source code and subtracting the
address of the function of interest), but they are fraught with danger.
Outside of the code, try using the "nm" and "objdump" commands to peruse the
attributes of your object code.
HTH,
--Eljay