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.
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.
Help files tell me the file size should be listed at the end of the *.m51 file but I can not find it. That applies to version 7 and later of the C51 tools. You'll have to find the memory map for CODE memory and scroll to the last entry. Then calculate the final address. Version 6.02 is quite old (over 5 years) and there have been a lot of enhancements since then. Jon