There is a way to determine the size of a function. The command is:
nm -S <object_file_name>
This will return the sizes of each function inside the object file. Consult the manual pages in the GNU using ‘man nm’ to gather more information on this.
More Related Contents:
- what the output of this code and why?
- Passing values to macros by for loop
- Why does mulss take only 3 cycles on Haswell, different from Agner’s instruction tables? (Unrolling FP loops with multiple accumulators)
- Length of array in function argument
- #define macro for debug printing in C?
- Why are strlcpy and strlcat considered insecure?
- What does the scanf function return?
- Is accessing a global array outside its bound undefined behavior?
- Quick Way to Implement Dictionary in C
- How does one encode a series of images into H264 using the x264 C API?
- How Get arguments value using inline assembly in C without Glibc?
- Resolve circular typedef dependency?
- Segmentation Fault when writing to a string [duplicate]
- aligned malloc() in GCC?
- What is the difference between read() and fread()?
- Using SO_REUSEADDR – What happens to previously open socket?
- Why is a point-to-volatile pointer, like “volatile int * p”, useful?
- Why does adding a small float to a large float just drop the small one?
- Correctness of Sakamoto’s algorithm to find the day of week
- Argument-parsing helpers for C/Unix
- C: how to break apart a multi digit number into separate variables?
- Status of __STDC_IEC_559__ with modern C compilers
- Errors using ternary operator in c
- Scanf/Printf double variable C
- How to wrap printf() into a function or macro?
- When an int is cast to a short and truncated, how is the new value determined?
- Executing code before main()
- What API do I call to get the system uptime?
- Is ‘long unsigned’ as valid as ‘unsigned long’ in C?
- Integer overflow in C: standards and compilers