Jp3141
Well-known member
I suspect this is not possible, but is there a way (in the Arduino environment) to have a program print its own source code for documentation purposes ? I'd like to be able to do this as part of the standard compile process, not as an extra step.
I have many programs on various Teensy's and it's hard to keep track of which Teensy has which version of code. If the program could print (most of ?) its own source code upon startup, I could save myself some confusion.
While there are some examples of programs that print their own code (quine), these are not arbitrary programs, and my requirement is not that it print exactly, but something that I can use to recover source if needed.
I have many programs on various Teensy's and it's hard to keep track of which Teensy has which version of code. If the program could print (most of ?) its own source code upon startup, I could save myself some confusion.
While there are some examples of programs that print their own code (quine), these are not arbitrary programs, and my requirement is not that it print exactly, but something that I can use to recover source if needed.