I have a correctly working program on the Arduino UNO. When I expand the "void setup()" part further the program is no longer running after re-upload. Even when I add some comments?! When I leave it out; upload again to the Arduino; the program is running again. It seems that their is a maximum (memory) size for the "void setup()" part.
It seems that their is a maximum (memory) size for the "void setup()" part.
No quite simply there is not a maximum size for the setup function. Please don't call it void setup, the void just means it returns no data, it's name is simply setup.
There is a maximum size for the code as a whole and for the SRAM but this is not limited to any one function.
michinyon:
Comments don't get included in the compiled file and won't be downloaded to the Arduino.
While its certainly true that comments in the code do not get stored in the program file, I will note in passing that I ran into a Fortran compiler in my first computer job 35 years ago that had a strict limit on the number of lines in the source file, and in order to get the program I was assigned to port over that came from elsewhere to be compiled, I had to delete the comments to get the source small enough to be able to be compiled.
I had to delete the comments to get the source small enough to be able to be compiled.
For performance reasons on older hardware, parsers often created temp files as contiguous storage to avoid thrashing the hard disk... So, these files were fixed-length but could be overridden with the magic card deck / TSO invocation that gave more compiler resources. My Honeywell Fortran66 days were too long ago to remember precisely the terminology, but I had to run my batches this way because I chained deferred program runs.
Two tapes.... one the "data" and the other the cipher key. They are read in together!
A duplicate cipher key tape at the receiving end is required to decode the transmission.