MicroController 32KB program size limit?

Four quick questions:

  1. The size of the *.hex file of my compiled easyC Pro program for my VEX robot is 62KB. The size is larger than 32KB and the robot seems to run OK. If I am looking in the incorrect place for the size of my program … where should I look?

  2. If I go over the VEX MCU program size limit … how do I know? Does the robot not work? Does the robot work unpredictably? Other?

  3. I have been told that code comments do not compile and therefore do not effect the size to the final compiled code. Is this true?

  4. Finally, does the compiler for the high end MPLAB software optimize code better than easyC and therefore create smaller compiled programs? Also, does the MPLAB software have a debugger where I can step through my code line by line?

Thanks,
Randy G.

In the lower right corner it will show the size of the file.

Thanks for telling me where to find the size of my program. It turns out it is 24.5KB. Do you know why there is a difference between this and the size of the *.hex file(62KB)?

Also, do you know the answer to any of my other questions?

Thanks …

Four quick questions:

  1. The size of the *.hex file of my compiled easyC Pro program for my VEX robot is 62KB. The size is larger than 32KB and the robot seems to run OK. If I am looking in the incorrect place for the size of my program … where should I look? - See above

  2. If I go over the VEX MCU program size limit … how do I know? Does the robot not work? Does the robot work unpredictably? Other?
    The compiler will tell you my giving you an out of memory linking error.

  3. I have been told that code comments do not compile and therefore do not effect the size to the final compiled code. Is this true?
    That is correct your comments are ignored by the compiler.

  4. Finally, does the compiler for the high end MPLAB software optimize code better than easyC and therefore create smaller compiled programs? Also, does the MPLAB software have a debugger where I can step through my code line by line?
    The version shipped with easyC is the full compiler and does optimize the code. easyC and it’s library doesn’t support software debug which is propitiatory to the Microchip IDE

Thanks,
Randy G.