Function sizes including static data in other sections

56 Views Asked by At

Is there a convenient way to find the full size cost of a compiled function? Measuring function code sizes is simple (with objdump or nm), but what if a function generates in a non-text section static data such as jump tables from switches. How can I conveniently add the sizes of those (especially in situations where there's multiple functions per object file and several of them each reference a jumptable) to the text size of a function?

0

There are 0 best solutions below