The gfunsize Utility Program prints the code size of one or more named functions or all functions in an ELF object file, object library file, or executable file. For ELF, the code size of each function is part of the ELF symbol information.
MCore does not always give useful sizes because of literal pools. The compiler does not emit literals after every function, but defers emitting literals for as long as possible so that duplicate literals can be merged.
options gfunsize options, listed below.
filename Name of the ELF file.
-help Display information about all options.
-all Print the code sizes of all functions. This is the default.
-func=name Print code sizes of the specified function(s).
-addr Print function(s) addresses.
-hex Print function code sizes and addresses in hexadecimal.
-sectnum=n Only recognize functions in section number n.
-sect=name Only recognize functions in section name.
-gcompare Print the output in a format suitable for use as input to the -gcompare Utility Program.
-file Print filename before each function.
Strip leading underscores from function names.