Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Richard Erlacher
10/12/12 10:49
Read: 517 times
Denver, Co

#188634 - your question is not clear
Responding to: Mohit Gupta's previous message
Mohit Gupta said:
Dear Sir,

My question still remains the same. How do I get to know the code size of each of the c files

It's not clear whether you want the 'C' source file size or the compiled linkable, or the binary file

I have compiled using the keil compiler. When I check in the .M51 file, it give the size of the subroutines but I am not able to see the code size of the complete obj file.

Is that before or after linking? There's extra overhead in the linkable file. Surely you don't want that.

How can I get the code size of each file.


Mohit Gupta

Perhaps you need to compile each of the files separately and then subtract the binary that's common to all of them.

I'm not a big 'C' user, so I really don't know for certain, but I've done this sort of thing in ASM.


List of 10 messages in thread
How to Determine code size of a c and obj file      Mohit Gupta      10/11/12 00:24      
   which toolchain?      Jan Waclawek      10/11/12 00:38      
   Your tools will tell you...      Andy Neil      10/11/12 01:19      
   Since May 2006      Andy Neil      10/11/12 03:58      
   are you aware ....      Erik Malund      10/11/12 07:06      
   Why do so many ask without giving the relevant facts?      Erik Malund      10/11/12 09:42      
      unable to get the code size of each individual C file      Mohit Gupta      10/11/12 23:32      
         Using the Keil C51 compiler      Andy Neil      10/12/12 01:35      
            memory usage is displayed by the tool      Andy Neil      10/12/12 04:26      
         your question is not clear      Richard Erlacher      10/12/12 10:49      

Back to Subject List