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
What Stephan has said is absolutly right and things may change again when you download a compiler upgrade. Besides, computing the runtime for any non-trivial function is very difficult - even when it is possible in theory. By far the simplest and usually the best method is to use the simulator and the performace analyser to determine the time required to execute a function and to take an average over a large number of typical instances.