Go Down

Topic: Comments in Code affect compiled size ? (Read 931 times) previous topic - next topic


Am I correct to assume that any comments (  // .... ) in my code are ignored when it is compiled and uploaded to the board, so they will not affect the amount of memory used by the software ?


The art of getting good answers lies in asking good questions.


That's right. Comments improve readability with no overhead like program size or execution time.
Please post technical questions on the forum, not by personal message. Thanks!

More info: http://www.gammon.com.au/electronics


What does increase increase memory (FLASH, SRAM) usage is if you have Serial.begin(), wire.begin() but don't actually use serial port or I2C bus. Some people start their projects from someone else code and didn't do a good cleanup.
Serial LCD keypad panel,phi_prompt user interface library,SDI-12 USB Adapter

Go Up