Comments in wio-terminal code #328
Answered
by
jimbobbennett
Marty Hummel (marty-optum)
asked this question in
Q&A
|
Do comments written in the source code (.cpp, .h, .ini) get uploaded to the Wio Terminal, or are they stripped out by the compiler before the upload? I know that microcontrollers like the Wio Terminal have much less memory than General Purpose Controllers like the Raspberry Pi, so I need to know if I need to limit the amount of comments in the microcontroller code, or if it doesn't really matter. Thank you. |
Answered by
jimbobbennett
Nov 1, 2021
Replies: 1 comment
|
They should be stripped out - the code is compiled, so things like comments that are not executable code won't make it into the final executable. If you wanted to do a test, you could compile up a small binary, one with no comments, and one with a lot of comments, and you should see identical binary sizes. |
0 replies
Answer selected by
jimbobbennett
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
They should be stripped out - the code is compiled, so things like comments that are not executable code won't make it into the final executable.
If you wanted to do a test, you could compile up a small binary, one with no comments, and one with a lot of comments, and you should see identical binary sizes.