Is there a method/function to get the code size of a C program compiled using GCC compiler? (may vary when some optimization technique is applied)
问题 Can I measure the code size with the help of an fseek() function and store it to a shell variable? Is it possible to extract the code size, compilation time and execution time using milepost gcc or a GNU Profiler tool ? If yes, how to store them into shell variables? Since my aim is to find the best set of optimization technique upon the basis of the compilation time, execution time and code size, I will be expecting some function that can return these parameters. MyPgm=/root/Project/Programs