RAM, ROM and runtime calculation

Hi,
How can i compute the ROM, RAM size and runtime consumed by a function in C.
For example:
void main()
{
...
f();
}

f()
{
...
...
}

How can i compute the RAM, ROM and runtime consumed by the function f() from the listing file and the map file?
Please help me.
Thanks

Parents Reply Children
More questions in this forum