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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/04/03 11:51
Read: times


 
#47489 - RE: What is the size of my code?
Responding to: ???'s previous message
One way is to actually look in the hex file, you can open this in an editor, and look at the hex record address fields. Normally the record with the highest address is toward the end of the file. The address of this record plus the number of bytes in the record will addup to the maximum address in your program.

Another way to see program size it to have the assembler generate a listing file. You can look in there to see the generated code and the highest address used.

In many of my projects I put an assembler language label at the end of the source file similar to as follows:
    ...
    RET            ;end of last subroutine
;
CODE_TOP:
;
    END


Now I can look at the symbol table or cross reference listing to see the size of the code which will be equal to the value of CODE_TOP.

Michael Karas


List of 20 messages in thread
TopicAuthorDate
What is the size of my code?            01/01/70 00:00      
   RE: What is the size of my code?            01/01/70 00:00      
      RE: What is the size of my code?            01/01/70 00:00      
         RE: What is the size of my code?            01/01/70 00:00      
            RE: What is the size of my code?            01/01/70 00:00      
               RE: What is the size of my code?            01/01/70 00:00      
   RE: What is the size of my code?            01/01/70 00:00      
   RE: What is the size of my code?            01/01/70 00:00      
   RE: What is the size of my code?            01/01/70 00:00      
      RE: What is the size of my code?            01/01/70 00:00      
      RE: What is the size of my code?            01/01/70 00:00      
      RE: What is the size of my code?Andy Nei            01/01/70 00:00      
         RE: What is the size of my code?Andy Nei            01/01/70 00:00      
   RE: What is the size of my code?            01/01/70 00:00      
      RE: What is the size of my code?            01/01/70 00:00      
         RE: What is the size of my code?            01/01/70 00:00      
            does size matter?            01/01/70 00:00      
               RE: does size matter?            01/01/70 00:00      
               RE: does size matter?            01/01/70 00:00      
         RE: What is the size of my code?            01/01/70 00:00      

Back to Subject List