This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

basic doubt

Hi ,

I got a basic doubt.When we compile and build our programs in keil simulator we are getting a line in the output window

Program Size: data=102 xdata=8184 const=45 code=7058

I would like to know what these numbers and the word data,xdata,const,code really denotes.

If I want to know my exact program size how can I know?

looking for your help

Parents
  • Hi,
    This line brings out the total size of your code and variables used.

    data : represents the total size consumed in the internal data memory. variables declared with the 'data' memory specifier are stored here.

    xdata : represents the total size of local and global variables stored in the XRAM.

    const: represents the constants stored in the code memory (in most cases)

    code: represents your code size stored in the code memory.

Reply
  • Hi,
    This line brings out the total size of your code and variables used.

    data : represents the total size consumed in the internal data memory. variables declared with the 'data' memory specifier are stored here.

    xdata : represents the total size of local and global variables stored in the XRAM.

    const: represents the constants stored in the code memory (in most cases)

    code: represents your code size stored in the code memory.

Children