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

Program size - map file

I can not find the output file size in the *.m51 file after a compile. I have my target options correctly set for the output's contents. I am using version 6.02 of the C51 compiler and 4.02 of the BL51 linker.

Help files tell me the file size should be listed at the end of the *.m51 file but I can not find it.

Does anyone know why the program size would not be included in this file?

Thank you.

Parents
  • I can not find the output file size in the *.m51 file after a compile

    You shouldn't be expecting to, for two reasons:

    1) a compile doesn't write a map file --- only the link step does that.

    2) the file size is quite completely irrelevant --- it's the (code/data) memory usage of your program you might be interested in.

    Does anyone know why the program size would not be included in this file?

    One important reason would be if the link failed, thus no program was written, and thus there's no size of that program to be reported.

Reply
  • I can not find the output file size in the *.m51 file after a compile

    You shouldn't be expecting to, for two reasons:

    1) a compile doesn't write a map file --- only the link step does that.

    2) the file size is quite completely irrelevant --- it's the (code/data) memory usage of your program you might be interested in.

    Does anyone know why the program size would not be included in this file?

    One important reason would be if the link failed, thus no program was written, and thus there's no size of that program to be reported.

Children
No data